From 34a067647c4ed24dffcc383c8f1752d225fe504e Mon Sep 17 00:00:00 2001 From: Dennis Dryden Date: Fri, 7 Jun 2013 23:42:28 +0100 Subject: [PATCH] Add check for git to install script. --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index 15377ba..66408f2 100755 --- a/install.sh +++ b/install.sh @@ -2,6 +2,12 @@ NVM_DIR="$HOME/.nvm" +if ! hash git 2>/dev/null; then + echo >&2 "You need to install git." + echo >&2 "Visit http://git-scm.com/downloads" + exit 1 +fi + if [ -d "$NVM_DIR" ]; then echo "=> NVM is already installed in $NVM_DIR, trying to update" echo -ne "\r=> "