diff --git a/bin/gvm b/bin/gvm index 70901a1..e6c9b93 100755 --- a/bin/gvm +++ b/bin/gvm @@ -8,6 +8,12 @@ if [ -z "$GVM_ROOT" ]; then exit 1 fi +$GVM_ROOT/bin/gvm-check +if [[ "$?" != "0" ]]; then + echo "ERROR: Missing requirements. Please see messages above" + exit 1 +fi + if [[ $1 == "version" ]]; then echo "Go Version Manager v$GVM_VERSION" elif [[ $1 == "implode" ]]; then diff --git a/bin/gvm-check b/bin/gvm-check index 4d341f4..0f2748a 100755 --- a/bin/gvm-check +++ b/bin/gvm-check @@ -1,6 +1,6 @@ #!/bin/bash if [ -z `which hg` ]; then - echo 'Could not find mercurial (try `sudo apt-get install mercurial`)' + echo '* Could not find mercurial (try `sudo apt-get install mercurial`)' exit 1 fi