all repos — nixfiles @ 3723ebb5bc1b9b1b40c630824e111e8b2bc713ce

System and user configuration, managed by nix and home-manager

installer: explain failures

Alan Pearce
commit

3723ebb5bc1b9b1b40c630824e111e8b2bc713ce

parent

4af53751bbb70f60e1b4300b9fd7d136bc738e90

1 file changed, 14 insertions(+), 0 deletions(-)

jump to
M user/install.shuser/install.sh
@@ -16,5 +16,19 @@ echo "$1 does not exist"
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