mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
Better error handling
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user