Skip to content

Commit

Permalink
Quote the boot script with single quotes (#676)
Browse files Browse the repository at this point in the history
Using unescaped double quotes within double quotes didn't seem to be working as expected, as I was having issues running a batch file produced from this template in a directory which contained spaces. This is similar to how it was suggested that powershell be called from a batch file here: https://stackoverflow.com/questions/19335004/how-to-run-a-powershell-script-from-a-batch-file.
  • Loading branch information
pvallone authored and bitwalker committed Jun 25, 2019
1 parent 7d1cb2d commit 86781d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion priv/templates/release_rc_win_exec.eex
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ 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 86781d0

Please sign in to comment.