Skip to content

Commit 8be481b

Browse files
committed
Escaping paths to the compiler jar. Closes #18
Might not work on Linux, handle with care!
1 parent 4ff9eaa commit 8be481b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/closure/compiler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def compile(io)
3434
tempfile.flush
3535

3636
begin
37-
result = `#{command} --js #{tempfile.path} 2>&1`
37+
result = `#{command} --js "#{tempfile.path}" 2>&1`
3838
rescue Exception
3939
raise Error, "compression failed: #{result}"
4040
ensure

0 commit comments

Comments
 (0)