From 0af61cf77e308b5d856eaf85e38d5cb4b40a14bd Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 27 Jan 2023 13:29:11 +0000 Subject: [PATCH] Don't overwrite ssh config file unless clean --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b6610342..7e596434 100644 --- a/Makefile +++ b/Makefile @@ -47,8 +47,7 @@ $(BIN_TARGETS): $(LOCAL_BIN)/%: bin/% command -v $? 2> /dev/null || ln -s $(PWD)$? $@ $(HOME)/.ssh/config: $(HOME)/.ssh - cp $@ "$@"~ - cp templates/ssh-config $@ + cp -n templates/ssh-config $@ $(PACKER_DIR): git clone --depth 1 $(PACKER_REPO) $@