Merge pull request #5850 from am11/master

Prefer Unix Shell build-in 'hash' over 'which'
This commit is contained in:
Livar 2017-02-26 13:24:13 -08:00 committed by GitHub
commit d338c5b5fd

View file

@ -122,8 +122,8 @@ get_current_os_name() {
machine_has() {
eval $invocation
which "$1" > /dev/null 2>&1
hash "$1" > /dev/null 2>&1
return $?
}