Fix condition for "if prelude alredy installed"

We need check for file existence not for directory
This commit is contained in:
Anton Ilin 2015-01-10 22:53:45 +02:00
parent 9cb8824bcf
commit 52131e032c

View file

@ -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"