Fix condition for "if prelude alredy installed"
We need check for file existence not for directory
This commit is contained in:
parent
9cb8824bcf
commit
52131e032c
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue