diff options
author | Simon Rozman <simon@rozman.si> | 2019-04-25 11:47:31 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-04-25 11:47:31 +0200 |
commit | b65177145860c35b6eb81937f2f1f43bb6ab8c2e (patch) | |
tree | 963076a5d02e0a8f4265893a4c8fa32205da3476 /installer/build.bat | |
parent | build: clean golang-runtime-dll-injection.patch (diff) | |
download | wireguard-windows-b65177145860c35b6eb81937f2f1f43bb6ab8c2e.tar.xz wireguard-windows-b65177145860c35b6eb81937f2f1f43bb6ab8c2e.zip |
installer: prevent double quoting when substituting batch parameters
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
-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 |