diff options
| author | Xu Cheng | 2016-01-18 11:51:02 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-01-20 13:55:06 +0800 |
| commit | b324d61f35f9eaee3825817ede071e5e592939e6 (patch) | |
| tree | ba6f5d5ac86a5a02944ad88672db4369d7bea118 | |
| parent | e3011dfe910beb2b9ed463c87273e88e3297bd6e (diff) | |
| download | brew-b324d61f35f9eaee3825817ede071e5e592939e6.tar.bz2 | |
bin/brew: remove unpin from sudo check list
We only need to check sudo for commands which create files.
| -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 - instal|install|reinstall|postinstall|ln|link|pin|unpin|update|update-bash|upgrade|create|migrate|tap|switch) + instal|install|reinstall|postinstall|ln|link|pin|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. |
