From 52131e032cf82a447d7f25706d80ac5685674e8e Mon Sep 17 00:00:00 2001 From: Anton Ilin Date: Sat, 10 Jan 2015 22:53:45 +0200 Subject: [PATCH] Fix condition for "if prelude alredy installed" We need check for file existence not for directory --- utils/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/installer.sh b/utils/installer.sh index 801ece2..93b69cc 100755 --- a/utils/installer.sh +++ b/utils/installer.sh @@ -149,7 +149,7 @@ then fi # If prelude is already installed -if [ -d "$PRELUDE_INSTALL_DIR/core/prelude-core.el" ] +if [ -f "$PRELUDE_INSTALL_DIR/core/prelude-core.el" ] then printf "\n\n$BRED" printf "You already have Prelude installed.$RESET\nYou'll need to remove $PRELUDE_INSTALL_DIR/prelude if you want to install Prelude again.\n"