diff options
Diffstat (limited to '')
-rw-r--r-- | openssh/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/openssh/Makefile b/openssh/Makefile index a05d8ad..6ee7512 100644 --- a/openssh/Makefile +++ b/openssh/Makefile @@ -14,8 +14,11 @@ install: ln -sf -- ~/.dotfiles/openssh/bash-aliases ~/.config/bash/aliases.d/openssh uninstall: - -unlink -- ~/.ssh - -unlink -- ~/.config/bash/aliases.d/openssh - -rmdir -- ~/.config/bash/aliases.d + -if ! $(CHECK_INSTALLED) ssh 2>/dev/null && \ + ! $(CHECK_INSTALLED) openssh 2>/dev/null; then \ + unlink -- ~/.ssh; \ + unlink -- ~/.config/bash/aliases.d/openssh; \ + rmdir -- ~/.config/bash/aliases.d; \ + fi .PHONY: install uninstall |