diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 31efc3c08b..76d81bfeef 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -208,7 +208,7 @@ module Homebrew def sudo_purge return unless ENV["HOMEBREW_BOTTLE_SUDO_PURGE"] - system "/usr/bin/sudo", "/usr/sbin/purge" + system "/usr/bin/sudo", "--non-interactive", "/usr/sbin/purge" end def bottle_formula(f)