aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/brew.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index f718f9c0d..4d90e0840 100755
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -97,7 +97,8 @@ begin
cmd = HOMEBREW_INTERNAL_COMMAND_ALIASES.fetch(cmd, cmd)
- sudo_check = %w[ install reinstall postinstall link pin unpin upgrade ]
+ sudo_check = %w[ install reinstall postinstall link pin unpin
+ update upgrade create migrate tap switch ]
if sudo_check.include? cmd
if Process.uid.zero? && !File.stat(HOMEBREW_BREW_FILE).uid.zero?