fix(windows): deal with space in install path

This commit is contained in:
Zaiming (Stone) Shi 2022-02-22 23:39:26 +01:00
parent 88343df95a
commit 271fda3d66
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@
set rel_root_dir=%%~fA
)
:: If release dir has space, change dir
@if not "%rel_root_dir%"=="%rel_root_dir: =%" (
@chdir /d "%rel_root_dir%"
@set rel_root_dir=.
)
@set "erts_dir=%rel_root_dir%\erts-%erts_vsn%"
@set "rootdir=%rel_root_dir%"
@set "rel_dir=%rel_root_dir%\releases\%rel_vsn%"