Add command_exists function
This commit is contained in:
parent
9d0ce5db9f
commit
0887152e2e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user