aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTim D. Smith2016-02-03 16:01:12 -0800
committerTim D. Smith2016-02-04 00:15:07 -0800
commit984a70e6e22241d0a9be21d333dca1757b2a3bfa (patch)
tree09cb8ecfe9ae0a2130ed50ca675b5f417d4a95d7 /bin
parentafe0fde49ceb29aba6f152967582ced5ba206c32 (diff)
downloadbrew-984a70e6e22241d0a9be21d333dca1757b2a3bfa.tar.bz2
use BSD stat
Closes Homebrew/homebrew#48803.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 6512aec1c..320456c2e 100755
--- a/bin/brew
+++ b/bin/brew
@@ -141,7 +141,7 @@ elif [[ -n "$HOMEBREW_DEVELOPER" && -f "$HOMEBREW_LIBRARY/Homebrew/dev-cmd/$HOME
HOMEBREW_BASH_COMMAND="$HOMEBREW_LIBRARY/Homebrew/dev-cmd/$HOMEBREW_COMMAND.sh"
fi
-if [[ "$(id -u)" = "0" && "$(stat -f%u "$HOMEBREW_BREW_FILE")" != "0" ]]
+if [[ "$(id -u)" = "0" && "$(/usr/bin/stat -f%u "$HOMEBREW_BREW_FILE")" != "0" ]]
then
case "$HOMEBREW_COMMAND" in
instal|install|reinstall|postinstall|ln|link|pin|update|update-bash|upgrade|create|migrate|tap|switch)