brew: remove ln from sudo command check list.
This commit is contained in:
parent
f6cbf7bab0
commit
578e68b2c1
2
bin/brew
2
bin/brew
@ -162,7 +162,7 @@ fi
|
|||||||
if [[ "$(id -u)" = "0" && "$(/usr/bin/stat -f%u "$HOMEBREW_BREW_FILE")" != "0" ]]
|
if [[ "$(id -u)" = "0" && "$(/usr/bin/stat -f%u "$HOMEBREW_BREW_FILE")" != "0" ]]
|
||||||
then
|
then
|
||||||
case "$HOMEBREW_COMMAND" in
|
case "$HOMEBREW_COMMAND" in
|
||||||
install|reinstall|postinstall|ln|link|pin|update|update-ruby|upgrade|create|migrate|tap|switch)
|
install|reinstall|postinstall|link|pin|update|update-ruby|upgrade|create|migrate|tap|switch)
|
||||||
odie <<EOS
|
odie <<EOS
|
||||||
Cowardly refusing to 'sudo brew $HOMEBREW_COMMAND'
|
Cowardly refusing to 'sudo brew $HOMEBREW_COMMAND'
|
||||||
You can use brew with sudo, but only if the brew executable is owned by root.
|
You can use brew with sudo, but only if the brew executable is owned by root.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user