Don't overwrite ssh config file unless clean

This commit is contained in:
Evie Litherland-Smith 2023-01-27 13:29:11 +00:00
parent f676af2d25
commit 0af61cf77e

View file

@ -47,8 +47,7 @@ $(BIN_TARGETS): $(LOCAL_BIN)/%: bin/%
command -v $? 2> /dev/null || ln -s $(PWD)$? $@ command -v $? 2> /dev/null || ln -s $(PWD)$? $@
$(HOME)/.ssh/config: $(HOME)/.ssh $(HOME)/.ssh/config: $(HOME)/.ssh
cp $@ "$@"~ cp -n templates/ssh-config $@
cp templates/ssh-config $@
$(PACKER_DIR): $(PACKER_DIR):
git clone --depth 1 $(PACKER_REPO) $@ git clone --depth 1 $(PACKER_REPO) $@