diff options
| author | Markus Reiter | 2017-03-12 22:09:13 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-03-13 11:38:37 +0100 |
| commit | 2b4c3ee1d75199c7886905f4ee678e7dd437b5e0 (patch) | |
| tree | 813c3b1993c2c88651fda7ef51e942832eb1f91a /Library/Homebrew/cask/lib | |
| parent | b7e7b5b5c9eb2b4282fb1913fc59d85f9e1ac140 (diff) | |
| download | brew-2b4c3ee1d75199c7886905f4ee678e7dd437b5e0.tar.bz2 | |
Default to `sudo: false` for `installer/uninstall :script`.
Diffstat (limited to 'Library/Homebrew/cask/lib')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/artifact/installer.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/artifact/installer.rb b/Library/Homebrew/cask/lib/hbc/artifact/installer.rb index 55e8d38c0..be857696e 100644 --- a/Library/Homebrew/cask/lib/hbc/artifact/installer.rb +++ b/Library/Homebrew/cask/lib/hbc/artifact/installer.rb @@ -16,7 +16,7 @@ module Hbc else executable, script_arguments = self.class.read_script_arguments(artifact.script, self.class.artifact_dsl_key.to_s, - { must_succeed: true, sudo: true }, + { must_succeed: true, sudo: false }, print_stdout: true) ohai "Running #{self.class.artifact_dsl_key} script #{executable}" raise CaskInvalidError.new(@cask, "#{self.class.artifact_dsl_key} missing executable") if executable.nil? diff --git a/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb b/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb index d438fc026..478f313b5 100644 --- a/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb +++ b/Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb @@ -163,7 +163,7 @@ module Hbc def uninstall_script(directives, directive_name: :script) executable, script_arguments = self.class.read_script_arguments(directives, "uninstall", - { must_succeed: true, sudo: true }, + { must_succeed: true, sudo: false }, { print_stdout: true }, directive_name) |
