aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-10-18 10:54:20 +0100
committerGitHub2017-10-18 10:54:20 +0100
commit1e4581ff85f42f4ece9a9419e0be46371fc67f19 (patch)
treeb3c6f84c532b44cf4dd1c46459bcebc1fc3622fb /Library
parentdc9ea9c786f5346b691687924140b8e90b136c3f (diff)
parentd601edaf57ea7968873e3ae9452cec68826d814c (diff)
downloadbrew-1e4581ff85f42f4ece9a9419e0be46371fc67f19.tar.bz2
Merge pull request #3330 from MikeMcQuaid/vendor-install-shasum
vendor-install: use full shasum PATH.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/vendor-install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/vendor-install.sh b/Library/Homebrew/cmd/vendor-install.sh
index 6d16a297d..df8c2373c 100644
--- a/Library/Homebrew/cmd/vendor-install.sh
+++ b/Library/Homebrew/cmd/vendor-install.sh
@@ -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)"