Merge pull request #3330 from MikeMcQuaid/vendor-install-shasum

vendor-install: use full shasum PATH.
This commit is contained in:
Mike McQuaid 2017-10-18 10:54:20 +01:00 committed by GitHub
commit 1e4581ff85

View File

@ -81,9 +81,9 @@ fetch() {
trap - SIGINT trap - SIGINT
fi fi
if [[ -x "$(which shasum)" ]] if [[ -x "/usr/bin/shasum" ]]
then 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)" ]] elif [[ -x "$(which sha256sum)" ]]
then then
sha="$(sha256sum "$CACHED_LOCATION" | cut -d' ' -f1)" sha="$(sha256sum "$CACHED_LOCATION" | cut -d' ' -f1)"