summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-07-05 19:11:07 -0700
committerBen Sima <ben@bsima.me>2018-07-05 19:11:07 -0700
commitd7a8920d0b82a699414ecc7bd5640cf3e8eb9aeb (patch)
tree49c9681be10b1f589831b605b7a6266d866c1bd0
parente53ad06acfbd2c9195ef8d57ed3b31b3c224c741 (diff)
Only link if not already linked
-rwxr-xr-xinstall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index b13db60..a929086 100755
--- a/install.sh
+++ b/install.sh
@@ -7,4 +7,4 @@ HM_PATH=https://github.com/rycee/home-manager/archive/release-18.03.tar.gz
nix-shell $HM_PATH -A install
-ln -s ~/config ~/.config/nixpkgs
+[[ -L ~/config ]] && ln -s ~/config ~/.config/nixpkgs