brew.sh: add tap-pin to sudo check list

This commit is contained in:
Xu Cheng 2016-03-09 19:34:58 +08:00
parent 865b788e96
commit e8caa48cc2

View File

@ -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.