added support for directories with single quotes. fixes #315
This commit is contained in:
1 parent
c3abaad353
commit
d19a9aa043
1 file changed
+2
-1
@@ -48,7 +48,8 @@ class Foreman::Process
|
|||||||
def run(options={})
|
def run(options={})
|
||||||
env = @options[:env].merge(options[:env] || {})
|
env = @options[:env].merge(options[:env] || {})
|
||||||
output = options[:output] || $stdout
|
output = options[:output] || $stdout
|
||||||
|
runner = "#{Foreman.runner}".gsub("'", "\\\\'") # To support directories with single quotes
|
||||||
|
cwd = "#{cwd}".gsub("'", "\\\\'")
|
||||||
if Foreman.windows?
|
if Foreman.windows?
|
||||||
Dir.chdir(cwd) do
|
Dir.chdir(cwd) do
|
||||||
Process.spawn env, expanded_command(env), :out => output, :err => output
|
Process.spawn env, expanded_command(env), :out => output, :err => output
|
||||||
|
|||||||
Reference in new issue
Block a user