Skip to content

Commit c44e66b

Browse files
committed
% change test_task.bat3
1 parent 6a06d37 commit c44e66b

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/scripts/windows/test_task.bat

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,11 @@ if exist "%DEPS_DIR%\bin" (
5151
echo.
5252
echo Copying DLL files...
5353
copy /y "%DEPS_DIR%\bin\*.dll" "%PHP_BUILD_DIR%\"
54-
set COPY_EXIT_CODE=%errorlevel%
55-
echo Copy command completed with exit code: %COPY_EXIT_CODE%
56-
57-
rem Exit code 1 from copy can mean "some files already exist" which is OK
58-
rem Only exit on codes 4+ which indicate real errors
59-
if %COPY_EXIT_CODE% gtr 3 (
60-
echo ERROR: Failed to copy DLL files (exit code: %COPY_EXIT_CODE%)
61-
exit /b 1
54+
if %errorlevel% neq 0 (
55+
echo WARNING: Copy command returned exit code: %errorlevel%
56+
echo This might be normal if some DLLs already exist
6257
) else (
63-
echo SUCCESS: DLL files copied (or already present)
58+
echo SUCCESS: DLL files copied successfully
6459
)
6560

6661
echo.

0 commit comments

Comments
 (0)