diff options
author | 2019-04-25 11:47:31 +0200 | |
---|---|---|
committer | 2019-04-25 11:47:31 +0200 | |
commit | 29eb46ddcd7bf48a93506d03a7eb5a289d680461 (patch) | |
tree | 963076a5d02e0a8f4265893a4c8fa32205da3476 /installer/build.bat | |
parent | build: clean golang-runtime-dll-injection.patch (diff) | |
download | wireguard-windows-29eb46ddcd7bf48a93506d03a7eb5a289d680461.tar.xz wireguard-windows-29eb46ddcd7bf48a93506d03a7eb5a289d680461.zip |
installer: prevent double quoting when substituting batch parameters
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'installer/build.bat')
-rw-r--r-- | installer/build.bat | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/installer/build.bat b/installer/build.bat index f6ef95af..c22daa5b 100644 --- a/installer/build.bat +++ b/installer/build.bat @@ -62,7 +62,7 @@ if exist .deps\prepared goto :build :msi echo [+] Compiling %1 - "%WIX%bin\candle.exe" %WIX_CANDLE_FLAGS% -dPlatform="%1" -out "%1\wireguard.wixobj" -arch %2 wireguard.wxs || exit /b %errorlevel% + "%WIX%bin\candle.exe" %WIX_CANDLE_FLAGS% -dPlatform="%~1" -out "%~1\wireguard.wixobj" -arch %2 wireguard.wxs || exit /b %errorlevel% echo [+] Linking %1 - "%WIX%bin\light.exe" %WIX_LIGHT_FLAGS% -out "dist\wireguard-%1-%WIREGUARD_VERSION%.msi" "%1\wireguard.wixobj" || exit /b %errorlevel% + "%WIX%bin\light.exe" %WIX_LIGHT_FLAGS% -out "dist\wireguard-%~1-%WIREGUARD_VERSION%.msi" "%~1\wireguard.wixobj" || exit /b %errorlevel% goto :eof |