Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 3582d77

Browse files
committed
Avoid node crash during compilation
In a very specific case (rjs_driver.js placed in a directory containing space chars in his name), node crashed because it couldn't find the file. The fix is really simple but makes the compilation succeed !
1 parent 0e4243e commit 3582d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/requirejs-rails_tasks.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ EOM
107107
"requirejs:test_node"] do
108108
requirejs.config.target_dir.mkpath
109109

110-
`node #{requirejs.config.driver_path}`
110+
`node "#{requirejs.config.driver_path}"`
111111
unless $?.success?
112112
raise RuntimeError, "Asset compilation with node failed."
113113
end

0 commit comments

Comments
 (0)