Skip to content

Commit 83e5bf1

Browse files
committed
[windows] Added support for paths containing spaces
1 parent 0fd6290 commit 83e5bf1

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

priv/libexec/commands/win/console.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ $erl = (join-path $bin "erl.exe") #get erl.exe as werl.exe will open a new windo
44

55
$boot = (join-path $Env:REL_DIR $Env:REL_NAME)
66

7-
$argv = @("-boot", $boot)
8-
$argv += @("-config", $Env:SYS_CONFIG_PATH)
9-
$argv += @("-args_file", $Env:VMARGS_PATH)
7+
$argv = @("-boot", "`"$boot`"")
8+
$argv += @("-config", "`"$Env:SYS_CONFIG_PATH`"")
9+
$argv += @("-args_file", "`"$Env:VMARGS_PATH`"")
1010
$argv += @("-user", "Elixir.IEx.CLI")
1111
$argv += @("-extra", "--no-halt", "+iex")
1212

priv/templates/release_rc_win_exec.eex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ where pwsh >nul 2>nul
1515
if %ERRORLEVEL% equ 0 (
1616
set prog=pwsh
1717
)
18-
%prog% -NonInteractive -NoProfile -ExecutionPolicy Bypass -Command "& "%boot_script%" @args" %*
18+
%prog% -NonInteractive -NoProfile -ExecutionPolicy Bypass -Command "& '%boot_script%' @args" %*
19+

0 commit comments

Comments
 (0)