Merge pull request #5850 from am11/master
Prefer Unix Shell build-in 'hash' over 'which'
This commit is contained in:
commit
d338c5b5fd
1 changed files with 2 additions and 2 deletions
4
scripts/obtain/dotnet-install.sh
vendored
4
scripts/obtain/dotnet-install.sh
vendored
|
@ -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 $?
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue