vendor-install: use full shasum PATH.
Otherwise things can explode if there's a random `shasum`. See #3281.
This commit is contained in:
parent
b4e1e39d3b
commit
d601edaf57
@ -81,9 +81,9 @@ fetch() {
|
||||
trap - SIGINT
|
||||
fi
|
||||
|
||||
if [[ -x "$(which shasum)" ]]
|
||||
if [[ -x "/usr/bin/shasum" ]]
|
||||
then
|
||||
sha="$(shasum -a 256 "$CACHED_LOCATION" | cut -d' ' -f1)"
|
||||
sha="$(/usr/bin/shasum -a 256 "$CACHED_LOCATION" | cut -d' ' -f1)"
|
||||
elif [[ -x "$(which sha256sum)" ]]
|
||||
then
|
||||
sha="$(sha256sum "$CACHED_LOCATION" | cut -d' ' -f1)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user