From ea1a3ea6e04310f62a5b10f37642cefa92dc6e7d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 15 Jan 2020 10:48:13 +0000 Subject: [PATCH] dev-cmd/bottle: run `sudo --purge` non-interactively. This should avoid hanging if permissions are not granted. --- Library/Homebrew/dev-cmd/bottle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)