diff options
| author | Xu Cheng | 2016-01-18 11:49:53 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-01-20 13:55:06 +0800 |
| commit | e3011dfe910beb2b9ed463c87273e88e3297bd6e (patch) | |
| tree | bdddc99df2d222098ecd4baddd22a3634b097c88 /bin | |
| parent | e12e1a5d5d71a250d66e3070f0047dd10278eb38 (diff) | |
| download | brew-e3011dfe910beb2b9ed463c87273e88e3297bd6e.tar.bz2 | |
bin/brew: include alias in sudo check
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |
