From 2b4c3ee1d75199c7886905f4ee678e7dd437b5e0 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 12 Mar 2017 22:09:13 +0100 Subject: Default to `sudo: false` for `installer/uninstall :script`. --- Library/Homebrew/cask/lib/hbc/artifact/installer.rb | 2 +- Library/Homebrew/cask/lib/hbc/artifact/uninstall_base.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/cask/lib') 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) -- cgit v1.2.3