File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ REM copy the BuildCustomizations to VCTargets folder
141141echo Installing build customisations...
142142del /F /Q " %VCTargetsPath% \BuildCustomizations\yasm.*" > nul 2 >& 1
143143copy /B /Y /V " %SCRIPTDIR% \yasm.*" " %VCTargetsPath% \BuildCustomizations\" > nul 2 >& 1
144- if not exist " %VCTargetsPath% \BuildCustomizations\yasm.props " (
144+ if %ERRORLEVEL% neq 0 (
145145 echo Error: Failed to copy build customisations!
146146 echo Ensure that this script is run in a shell with the necessary write privileges
147147 goto Terminate
@@ -159,11 +159,8 @@ if not exist "%SCRIPTDIR%\yasm\" (
159159REM copy yasm executable to VC installation folder
160160echo Installing required YASM release binary...
161161del /F /Q " %VCINSTALLDIR% \yasm.exe" > nul 2 >& 1
162- move /Y " %SCRIPTDIR% \yasm.exe" " %VCINSTALLDIR% \" > nul 2 >& 1
163- set INSTALLED = 1
164- if exist " %SCRIPTDIR% \yasm.exe" set INSTALLED = 0
165- if not exist " %VCINSTALLDIR% \yasm.exe" set INSTALLED = 0
166- if %INSTALLED% equ 0 (
162+ copy /B /Y /V " %SCRIPTDIR% \yasm.exe" " %VCINSTALLDIR% \" > nul 2 >& 1
163+ if %ERRORLEVEL% neq 0 (
167164 echo Error: Failed to install YASM binary!
168165 echo Ensure that this script is run in a shell with the necessary write privileges
169166 del /F /Q " %SCRIPTDIR% \yasm.exe" > nul 2 >& 1
You can’t perform that action at this time.
0 commit comments