Skip to content

Commit b6c0045

Browse files
author
José Valim
committed
Ensure rebar is quoted when running escript on windows
Signed-off-by: José Valim <[email protected]>
1 parent 10612dd commit b6c0045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mix/lib/mix/rebar.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ defmodule Mix.Rebar do
156156
defp wrap_cmd(nil), do: nil
157157
defp wrap_cmd(rebar) do
158158
if match?({:win32, _}, :os.type) and not String.ends_with?(rebar,".cmd") do
159-
"escript.exe #{rebar}"
159+
"escript.exe \"#{rebar}\""
160160
else
161161
rebar
162162
end

0 commit comments

Comments
 (0)