Permalink
Browse files

fixed #117 - dir check in installer script

  • Loading branch information...
1 parent dd929bc commit 5974e5328116982be130b91fb0fe2e6550ae56c5 Bozhidar Batsov committed with Apr 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 utils/installer.sh
View
@@ -8,15 +8,15 @@ hash git 2>&- || { echo >&2 "not found. Aborting installation!'."; exit 1; }
echo "found"
echo -n "Looking for an existing Emacs config..."
-if [ -f $PRELUDE_INSTALL_DIR ]
+if [ -d $PRELUDE_INSTALL_DIR ]
then
- echo "Found $PRELUDE_INSTALL_DIR. Backing up to $PRELUDE_INSTALL_DIR.pre-prelude"
+ echo "Found an existing $PRELUDE_INSTALL_DIR. Backing it up to $PRELUDE_INSTALL_DIR.pre-prelude"
mv $PRELUDE_INSTALL_DIR $PRELUDE_INSTALL_DIR.pre-prelude
fi
if [ -f ~/.emacs ]
then
- echo "Found ~/.emacs. Backing up to ~/.emacs.pre-prelude"
+ echo "Found an existing ~/.emacs. Backing it up to ~/.emacs.pre-prelude"
mv ~/.emacs ~/.emacs.pre-prelude
fi

0 comments on commit 5974e53

Please sign in to comment.