fixed #70 - signal an error if git is not installed
This commit is contained in:
parent
677ebde235
commit
22d9854bbb
1 changed files with 8 additions and 3 deletions
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
PRELUDE_INSTALL_DIR="$HOME/.emacs.d"
|
PRELUDE_INSTALL_DIR="$HOME/.emacs.d"
|
||||||
|
|
||||||
echo "Looking for an existing Emacs config..."
|
echo -n "Checking to see if git is installed... "
|
||||||
|
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 [ -f $PRELUDE_INSTALL_DIR ]
|
||||||
then
|
then
|
||||||
echo "Found $PRELUDE_INSTALL_DIR. Backing up to $PRELUDE_INSTALL_DIR.pre-prelude"
|
echo "Found $PRELUDE_INSTALL_DIR. Backing up to $PRELUDE_INSTALL_DIR.pre-prelude"
|
||||||
|
@ -16,8 +20,9 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "Cloning Emacs Prelude from GitHub..."
|
echo -n "Cloning Emacs Prelude from GitHub... "
|
||||||
/usr/bin/env git clone https://github.com/bbatsov/emacs-prelude.git $PRELUDE_INSTALL_DIR
|
/usr/bin/env git clone https://github.com/bbatsov/emacs-prelude.git $PRELUDE_INSTALL_DIR > /dev/null
|
||||||
|
echo "done."
|
||||||
|
|
||||||
echo ' _____ ____ _ _ '
|
echo ' _____ ____ _ _ '
|
||||||
echo '| ____|_ __ ___ __ _ ___ ___ | _ \ _ __ ___| |_ _ __| | ___ '
|
echo '| ____|_ __ ___ __ _ ___ ___ | _ \ _ __ ___| |_ _ __| | ___ '
|
||||||
|
|
Loading…
Reference in a new issue