From 506805d6950270375e06f62f23c18645b001b3a1 Mon Sep 17 00:00:00 2001 From: bas Date: Sat, 16 Jun 2012 15:24:36 +0200 Subject: [PATCH] Display a warning if emacs-24 isn't found during installation. --- utils/installer.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/installer.sh b/utils/installer.sh index 011261e..bc83176 100755 --- a/utils/installer.sh +++ b/utils/installer.sh @@ -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