Use recommended way of detecting command in $PATH
See https://stackoverflow.com/a/677212 for explanation.
This commit is contained in:
parent
ea6b258660
commit
dfc57b8d35
1 changed files with 3 additions and 3 deletions
6
bin/lein
6
bin/lein
|
@ -23,9 +23,9 @@ else
|
|||
cygwin=false
|
||||
fi
|
||||
|
||||
if hash shasum >/dev/null 2>&1; then
|
||||
SUM="shasum -"
|
||||
elif hash sha1sum >/dev/null 2>&1; then
|
||||
if command -v shasum >/dev/null 2>&1; then
|
||||
SUM="shasum"
|
||||
elif command -v sha1sum >/dev/null 2>&1; then
|
||||
SUM="sha1sum"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue