diff options
| author | Markus Reiter | 2016-12-31 18:02:42 +0100 |
|---|---|---|
| committer | Markus Reiter | 2016-12-31 18:02:42 +0100 |
| commit | ed892243cdd5519f859bdfd7713ad089a06e3546 (patch) | |
| tree | 6c063a4ff87bc024286f68c374d7bbf8270ec743 /Library/Homebrew/cask/lib/hbc/system_command.rb | |
| parent | 760a4601aa07e993c0ccb9ef01257da7361016e1 (diff) | |
| download | brew-ed892243cdd5519f859bdfd7713ad089a06e3546.tar.bz2 | |
Remove `:bsexec` parameter from `SystemCommand`.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/system_command.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/system_command.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/system_command.rb b/Library/Homebrew/cask/lib/hbc/system_command.rb index 638069386..06ce276df 100644 --- a/Library/Homebrew/cask/lib/hbc/system_command.rb +++ b/Library/Homebrew/cask/lib/hbc/system_command.rb @@ -48,13 +48,11 @@ module Hbc def process_options! options.extend(HashValidator) - .assert_valid_keys :input, :print_stdout, :print_stderr, :args, :must_succeed, :sudo, :bsexec + .assert_valid_keys :input, :print_stdout, :print_stderr, :args, :must_succeed, :sudo sudo_prefix = %w[/usr/bin/sudo -E --] sudo_prefix = sudo_prefix.insert(1, "-A") unless ENV["SUDO_ASKPASS"].nil? - bsexec_prefix = ["/bin/launchctl", "bsexec", options[:bsexec] == :startup ? "/" : options[:bsexec]] @command = [executable] options[:print_stderr] = true unless options.key?(:print_stderr) - @command.unshift(*bsexec_prefix) if options[:bsexec] @command.unshift(*sudo_prefix) if options[:sudo] @command.concat(options[:args]) if options.key?(:args) && !options[:args].empty? @command[0] = Shellwords.shellescape(@command[0]) if @command.size == 1 |
