From 2404279d6399a567a310f6204863eaed106e4bdb Mon Sep 17 00:00:00 2001 From: commitay Date: Thu, 1 Mar 2018 17:19:00 +1000 Subject: [PATCH] Fix SystemCommand escaping --- Library/Homebrew/cask/lib/hbc/system_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/lib/hbc/system_command.rb b/Library/Homebrew/cask/lib/hbc/system_command.rb index dfb3019998..e5a7d9202b 100644 --- a/Library/Homebrew/cask/lib/hbc/system_command.rb +++ b/Library/Homebrew/cask/lib/hbc/system_command.rb @@ -85,7 +85,7 @@ module Hbc executable, *args = expanded_command raw_stdin, raw_stdout, raw_stderr, raw_wait_thr = - Open3.popen3({ "PATH" => path }, executable, *args, **options) + Open3.popen3({ "PATH" => path }, [executable, executable], *args, **options) write_input_to(raw_stdin) raw_stdin.close_write