diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-09-05 20:45:43 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2011-09-05 20:47:09 +0200 |
commit | 889934e7395ca3211ede8e1e667805698a717e27 (patch) | |
tree | 4693697ec8228f4f06d3150115eb57d4b2a22d1d /g | |
parent | fbcaafce49fa08275813433f3330c447edc4e53c (diff) |
g: check if git is in PATH
Diffstat (limited to 'g')
-rwxr-xr-x | g | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |