aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index 719bee9e8..1651e8262 100644
--- a/Library/Homebrew/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -203,6 +203,7 @@ check-run-command-as-root() {
[[ "$(id -u)" = 0 ]] || return
export HOMEBREW_NO_SANDBOX="1"
+ [[ "$HOMEBREW_COMMAND" = "cask" ]] && return
[[ "$HOMEBREW_COMMAND" = "services" ]] && return
onoe <<EOS