Merge pull request #246 from ddryden/master

Add check for git in the installer script.
master
Jordan Harband 2013-09-21 12:55:55 -07:00
commit 5e2ad5bb8d
1 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,12 @@
NVM_DIR="$HOME/.nvm" 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 if [ -d "$NVM_DIR" ]; then
echo "=> NVM is already installed in $NVM_DIR, trying to update" echo "=> NVM is already installed in $NVM_DIR, trying to update"
echo -ne "\r=> " echo -ne "\r=> "