Check if prelude is installed before anything else.
This commit is contained in:
parent
14c7fb3b4c
commit
db1e2b2988
1 changed files with 9 additions and 9 deletions
|
@ -139,6 +139,15 @@ then
|
|||
printf "$RESET"
|
||||
fi
|
||||
|
||||
# If prelude is already installed
|
||||
if [ -d $PRELUDE_INSTALL_DIR/prelude ]
|
||||
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"
|
||||
printf "If you want to update your copy of prelude, run 'git pull origin master' from your prelude directory\n\n"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
### Check dependencies
|
||||
printf "$CYAN Checking to see if git is installed... $RESET"
|
||||
if hash git 2>&-
|
||||
|
@ -171,15 +180,6 @@ then
|
|||
printf "$YELLOW WARNING:$RESET Prelude depends on emacs $RED 24$RESET !\n"
|
||||
fi
|
||||
|
||||
# If prelude is already installed
|
||||
if [ -d $PRELUDE_INSTALL_DIR/prelude ]
|
||||
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"
|
||||
printf "If you want to update your copy of prelude, run 'git pull origin master' from your prelude directory\n\n"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
if [ -d $PRELUDE_INSTALL_DIR ] || [ -f $PRELUDE_INSTALL_DIR ]
|
||||
then
|
||||
# Existing file/directory found -> backup
|
||||
|
|
Loading…
Reference in a new issue