aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2016-08-24 12:43:09 -0700
committerGitHub <[email protected]>2016-08-24 12:43:09 -0700
commitf2877a2dc9513c7f98c8a962798379c5c89f4246 (patch)
tree20b0e757b43f96c0ad2eacd11cec07eed6fbd7a4 /priv/templates
parent88db273ab872cc906b9102658b960a9f28998289 (diff)
parent106ef29f0593ce40fe8b632a8f37260bf6c6b20f (diff)
downloadrelx-f2877a2dc9513c7f98c8a962798379c5c89f4246.tar.gz
relx-f2877a2dc9513c7f98c8a962798379c5c89f4246.tar.bz2
relx-f2877a2dc9513c7f98c8a962798379c5c89f4246.zip
Merge pull request #464 from filmor/patch-1
Fix erts path discovery on Windows if the path contains spaces.
Diffstat (limited to 'priv/templates')
-rw-r--r--priv/templates/bin_windows2
-rw-r--r--priv/templates/extended_bin_windows2
2 files changed, 2 insertions, 2 deletions
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%
diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows
index 159bace..e5ab40a 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%