Browse Source

Add check for git to install script.

master
Dennis Dryden 12 years ago committed by Dennis Dryden
parent
commit
34a067647c
  1. 6
      install.sh

6
install.sh

@ -2,6 +2,12 @@ @@ -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=> "

Loading…
Cancel
Save