aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-10-17 20:51:32 +0100
committerMike McQuaid2017-10-17 20:51:32 +0100
commitd601edaf57ea7968873e3ae9452cec68826d814c (patch)
treebc112dc4c013ca75b2c85ea8a2e5e506fd8c24b3 /Library
parentb4e1e39d3b38b722fc554a3665d9b6dbf165d99a (diff)
downloadbrew-d601edaf57ea7968873e3ae9452cec68826d814c.tar.bz2
vendor-install: use full shasum PATH.
Otherwise things can explode if there's a random `shasum`. See #3281.
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)"