From d7cc771c7da761f188a20481b58c95506382f899 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Thu, 5 Apr 2012 11:07:20 +0300 Subject: [PATCH] fixed #117 - dir check in installer script --- utils/installer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/installer.sh b/utils/installer.sh index a3e6371..46d0bfe 100755 --- a/utils/installer.sh +++ b/utils/installer.sh @@ -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