Skip to content
Snippets Groups Projects
Commit e8caa48c authored by Xu Cheng's avatar Xu Cheng
Browse files

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

parent 865b788e
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment