dev-cmd/bottle: run sudo --purge non-interactively.

This should avoid hanging if permissions are not granted.
This commit is contained in:
Mike McQuaid 2020-01-15 10:48:13 +00:00
parent 95e04cbf29
commit ea1a3ea6e0
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -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)