From b65177145860c35b6eb81937f2f1f43bb6ab8c2e Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 25 Apr 2019 11:47:31 +0200 Subject: installer: prevent double quoting when substituting batch parameters Signed-off-by: Simon Rozman --- installer/build.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'installer') 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 -- cgit v1.2.3-59-g8ed1b