aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorXu Cheng2016-01-18 11:49:53 +0800
committerXu Cheng2016-01-20 13:55:06 +0800
commite3011dfe910beb2b9ed463c87273e88e3297bd6e (patch)
treebdddc99df2d222098ecd4baddd22a3634b097c88 /bin
parente12e1a5d5d71a250d66e3070f0047dd10278eb38 (diff)
downloadbrew-e3011dfe910beb2b9ed463c87273e88e3297bd6e.tar.bz2
bin/brew: include alias in sudo check
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index a801c0ba5..26489f19a 100755
--- a/bin/brew
+++ b/bin/brew
@@ -140,7 +140,7 @@ HOMEBREW_BASH_COMMAND="$HOMEBREW_LIBRARY/Homebrew/cmd/$1.sh"
if [[ "$(id -u)" = "0" && "$(stat -f%u "$HOMEBREW_BREW_FILE")" != "0" ]]
then
case "$HOMEBREW_COMMAND" in
- install|reinstall|postinstall|link|pin|unpin|update|update-bash|upgrade|create|migrate|tap|switch)
+ instal|install|reinstall|postinstall|ln|link|pin|unpin|update|update-bash|upgrade|create|migrate|tap|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.