From 3723ebb5bc1b9b1b40c630824e111e8b2bc713ce Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 2 Oct 2019 19:57:52 +0200 Subject: installer: explain failures --- user/install.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- cgit 1.4.1