mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
setlocal
|
setlocal
|
||||||
if "%1"=="/?" (
|
if "%1"=="/?" (
|
||||||
powershell.exe -Command "& Get-Help -Detailed .\build.ps1"
|
powershell.exe -Command "& Get-Help -Detailed ""%~dp0\build.ps1"""
|
||||||
exit /b
|
exit /b
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user