Created
December 1, 2016 05:28
-
-
Save 7696122/d3ea961d82d535bf862e2c50970dc754 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 checkInstalled { | |
installed="" | |
# if hash $1 2>/dev/null; then | |
if command -v $1 2>/dev/null; then | |
installed=0 | |
else | |
installed=1 | |
fi | |
return $installed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment