Skip to content

Commit

Permalink
Exit with an error code when git isn’t installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuslash committed May 8, 2016
1 parent 45e3dd9 commit 0dec55d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sti
Expand Up @@ -242,6 +242,7 @@ function dispatch

if ! which git 2>&1 > /dev/null; then
echo "Couldn't find git, please install it" >&2
exit 3
fi

if [[ ${#@} -lt 1 ]]; then
Expand Down

0 comments on commit 0dec55d

Please sign in to comment.