Skip to content

Commit 065ebc4

Browse files
committed
utils: adjust build.ps1 help invocation in helper launcher
As the helper script could (and probably always would) be launched from a directory outside of the source tree, it is convenient to use an absolute path in Get-Help invocation, just like we do in the `build.ps1` invocation below. Also, quoting might be necessary for paths with spaces.
1 parent 2e348d2 commit 065ebc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@echo off
22
setlocal
33
if "%1"=="/?" (
4-
powershell.exe -Command "& Get-Help -Detailed .\build.ps1"
4+
powershell.exe -Command "& Get-Help -Detailed ""%~dp0\build.ps1"""
55
exit /b
66
)
77

0 commit comments

Comments
 (0)