From 2ff5cb306a78bde3eea04d4379eb2c3a5dd2185e Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Tue, 5 Apr 2016 17:32:18 +0200 Subject: Fix erts path discovery on Windows if the path contains spaces. --- priv/templates/bin_windows | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/priv/templates/bin_windows b/priv/templates/bin_windows index 7b1d4d8..fa1c2cc 100644 --- a/priv/templates/bin_windows +++ b/priv/templates/bin_windows @@ -60,7 +60,7 @@ cd %rootdir% set erl=%%i ) @set dir_cmd="%erl%" -noshell -eval "io:format(\"~s\", [filename:nativename(code:root_dir())])." -s init stop -@for /f %%i in ('%%dir_cmd%%') do ( +@for /f "delims=" %%i in ('%%dir_cmd%%') do ( set erl_root=%%i ) @set erts_dir=%erl_root%\erts-%erts_vsn% -- cgit v1.2.3 From 106ef29f0593ce40fe8b632a8f37260bf6c6b20f Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Tue, 5 Apr 2016 17:43:44 +0200 Subject: Update extended_bin_windows --- priv/templates/extended_bin_windows | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows index 7adff36..0884ed9 100644 --- a/priv/templates/extended_bin_windows +++ b/priv/templates/extended_bin_windows @@ -99,7 +99,7 @@ set erl=%%i ) @set dir_cmd="%erl%" -noshell -eval "io:format(\"~s\", [filename:nativename(code:root_dir())])." -s init stop -@for /f %%i in ('%%dir_cmd%%') do @( +@for /f "delims=" %%i in ('%%dir_cmd%%') do @( set erl_root=%%i ) @set erts_dir=%erl_root%\erts-%erts_vsn% -- cgit v1.2.3