aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2016-03-09 19:34:58 +0800
committerXu Cheng2016-03-09 19:35:41 +0800
commite8caa48cc2858815ef3193d461fb12c2ba8bda07 (patch)
tree779c2e1f3f6c53dd0e55fd86aae5472a1d5ae2b2
parent865b788e96b1e9fb0573845b1634dcd8bcc58ff4 (diff)
downloadbrew-e8caa48cc2858815ef3193d461fb12c2ba8bda07.tar.bz2
brew.sh: add tap-pin to sudo check list
-rw-r--r--Library/brew.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/brew.sh b/Library/brew.sh
index bc3df4bfe..f840660b6 100644
--- a/Library/brew.sh
+++ b/Library/brew.sh
@@ -146,7 +146,7 @@ fi
if [[ "$(id -u)" = "0" && "$(/usr/bin/stat -f%u "$HOMEBREW_BREW_FILE")" != "0" ]]
then
case "$HOMEBREW_COMMAND" in
- install|reinstall|postinstall|link|pin|update|upgrade|create|migrate|tap|switch)
+ install|reinstall|postinstall|link|pin|update|upgrade|create|migrate|tap|tap-pin|switch)
odie <<EOS
Cowardly refusing to 'sudo brew $HOMEBREW_COMMAND'
You can use brew with sudo, but only if the brew executable is owned by root.