Created
October 26, 2017 16:48
-
-
Save sdr01810/a560f3a56fd41d8c20e953886405bb32 to your computer and use it in GitHub Desktop.
Shell function check_git_is_installed() and friends.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function check_git_is_installed() { | |
if ! git_is_installed ; then | |
post_delayed_exit 2 "Cannot locate the git command; aborting." | |
fi | |
} | |
function git_is_installed() { | |
command -v git >/dev/null | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment