fix(platform/xilinx): reset %ERRORLEVEL% after user input to prevent errors from empty input

This commit is contained in:
Gatsby
2024-10-29 14:16:44 +08:00
parent 3ada35e863
commit 5cfc64b518
+2
View File
@@ -24,6 +24,8 @@ set /p "xilinx_path=Enter Xilinx installation path (press Enter for default: %de
if "%xilinx_path%"=="" (
set "xilinx_path=%default_path%"
)
REM Reset ERRORLEVEL to avoid false error codes
verify > nul
REM Convert version to integer
for /f "tokens=1,2 delims=." %%a in ("%xilinx_version%") do (