Add command_exists function

This commit is contained in:
2016-08-26 16:37:13 -07:00
parent 9d0ce5db9f
commit 0887152e2e

View File

@@ -34,3 +34,7 @@ function environment_variable_exists {
eval "value=\"\${$1+x}\""
[ ! -z $value ]
}
function command_exists {
hash "$1" 2>/dev/null 1>/dev/null
}