vendor-install: use full shasum PATH.

Otherwise things can explode if there's a random `shasum`.

See #3281.
This commit is contained in:
Mike McQuaid 2017-10-17 20:51:32 +01:00
parent b4e1e39d3b
commit d601edaf57

View File

@ -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)"