Skip to content

Commit

Permalink
[windows] Added support for paths containing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
artman41 committed Jan 10, 2019
1 parent 0fd6290 commit 83e5bf1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions priv/libexec/commands/win/console.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ $erl = (join-path $bin "erl.exe") #get erl.exe as werl.exe will open a new windo

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

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

Expand Down
3 changes: 2 additions & 1 deletion priv/templates/release_rc_win_exec.eex
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ where pwsh >nul 2>nul
if %ERRORLEVEL% equ 0 (
set prog=pwsh
)
%prog% -NonInteractive -NoProfile -ExecutionPolicy Bypass -Command "& "%boot_script%" @args" %*
%prog% -NonInteractive -NoProfile -ExecutionPolicy Bypass -Command "& '%boot_script%' @args" %*

0 comments on commit 83e5bf1

Please sign in to comment.