diff options
author | Alan Pearce | 2019-10-02 19:57:52 +0200 |
---|---|---|
committer | Alan Pearce | 2019-10-02 19:57:52 +0200 |
commit | 3723ebb5bc1b9b1b40c630824e111e8b2bc713ce (patch) | |
tree | 22a8e0dfb6b33a6d1055cae3ed9f8c7dbd259019 /user | |
parent | 4af53751bbb70f60e1b4300b9fd7d136bc738e90 (diff) | |
download | nixfiles-3723ebb5bc1b9b1b40c630824e111e8b2bc713ce.tar.lz nixfiles-3723ebb5bc1b9b1b40c630824e111e8b2bc713ce.tar.zst nixfiles-3723ebb5bc1b9b1b40c630824e111e8b2bc713ce.zip |
installer: explain failures
Diffstat (limited to 'user')
-rwxr-xr-x | user/install.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/user/install.sh b/user/install.sh index 8e0ca702..e33b70ae 100755 --- a/user/install.sh +++ b/user/install.sh @@ -16,5 +16,19 @@ then exit 1 fi +if [ -d "$NIXDIR" ] +then + echo "$NIXDIR already exists as a directory!" + ls -l "$NIXDIR" + exit +fi + +if [ -f "$NIXDIR" ] +then + echo "$NIXDIR already exists as a file" + ls -l "$NIXDIR" + exit +fi + ln -s $PWD $NIXDIR ln -s $1 home.nix |