summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-09-05 20:45:43 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2011-09-05 20:47:09 +0200
commit889934e7395ca3211ede8e1e667805698a717e27 (patch)
tree4693697ec8228f4f06d3150115eb57d4b2a22d1d /g
parentfbcaafce49fa08275813433f3330c447edc4e53c (diff)
g: check if git is in PATH
Diffstat (limited to 'g')
-rwxr-xr-xg4
1 files changed, 4 insertions, 0 deletions
diff --git a/g b/g
index e6d3d6fadec1..e5a91f38cd53 100755
--- a/g
+++ b/g
@@ -18,6 +18,10 @@ if [ "$#" -eq "0" ] ; then
exit $?
fi
+if [ ! "`type -p git`" ]; then
+ echo "Cannot find the git binary! Is git installed and is in PATH?"
+ exit 1
+fi
pushd $(dirname $0) > /dev/null
COREDIR=$(pwd)