Display a warning if emacs-24 isn't found during installation.

This commit is contained in:
bas 2012-06-16 15:24:36 +02:00
parent 59f26f63f6
commit 506805d695

View file

@ -32,6 +32,11 @@ else
printf "\e[32mnot found.\e[0m\n"
fi
if [ $(emacs --version 2>/dev/null | sed -n 's/.*[^0-9.]\([0-9]*\.[0-9.]*\).*/\1/p;q' | sed 's/\..*//g') -lt 24 ]
then
printf "\e[31mWarning.\e[0m Prelude depends on emacs \e[31m24\e[0m!\n"
fi
printf "Cloning Emacs Prelude from GitHub... "
/usr/bin/env git clone $PRELUDE_URL $PRELUDE_INSTALL_DIR > /dev/null 2>&1
cd $PRELUDE_INSTALL_DIR