Skip to content

Commit a5964ce

Browse files
committed
add/unify redirect to nul
1 parent 2ad11ba commit a5964ce

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.github/scripts/windows/build_task.bat

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,32 @@ if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" (
55
exit /b 3
66
)
77

8-
if /i "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin >NUL 2>NUL
8+
if /i "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin >nul 2>&1
99
if %errorlevel% neq 0 exit /b 3
10-
if /i "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin64 >NUL 2>NUL
10+
if /i "%APPVEYOR%" equ "True" rmdir /s /q C:\cygwin64 >nul 2>&1
1111
if %errorlevel% neq 0 exit /b 3
12-
if /i "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw >NUL 2>NUL
12+
if /i "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw >nul 2>&1
1313
if %errorlevel% neq 0 exit /b 3
14-
if /i "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw-w64 >NUL 2>NUL
14+
if /i "%APPVEYOR%" equ "True" rmdir /s /q C:\mingw-w64 >nul 2>&1
1515
if %errorlevel% neq 0 exit /b 3
16-
if /i "%APPVEYOR%" equ "True" rmdir /s /q C:\msys64 >NUL 2>NUL
16+
if /i "%APPVEYOR%" equ "True" rmdir /s /q C:\msys64 >nul 2>&1
1717
if %errorlevel% neq 0 exit /b 3
18-
if /i "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-Win32 >NUL 2>NUL
18+
if /i "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-Win32 >nul 2>&1
1919
if %errorlevel% neq 0 exit /b 3
20-
if /i "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-Win64 >NUL 2>NUL
20+
if /i "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-Win64 >nul 2>&1
2121
if %errorlevel% neq 0 exit /b 3
22-
if /i "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-v11-Win32 >NUL 2>NUL
22+
if /i "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-v11-Win32 >nul 2>&1
2323
if %errorlevel% neq 0 exit /b 3
24-
if /i "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-v11-Win64 >NUL 2>NUL
24+
if /i "%APPVEYOR%" equ "True" rmdir /s /q c:\OpenSSL-v11-Win64 >nul 2>&1
2525
if %errorlevel% neq 0 exit /b 3
2626
rem rmdir takes several minutes rename instead only
2727
pushd C:\
2828
if /i "%GITHUB_ACTIONS%" equ "True" ren msys64 msys64-del
2929
if %errorlevel% neq 0 exit /b 3
3030
popd
31-
del /f /q C:\Windows\System32\libcrypto-1_1-x64.dll >NUL 2>NUL
31+
del /f /q C:\Windows\System32\libcrypto-1_1-x64.dll >nul 2>&1
3232
if %errorlevel% neq 0 exit /b 3
33-
del /f /q C:\Windows\System32\libssl-1_1-x64.dll >NUL 2>NUL
33+
del /f /q C:\Windows\System32\libssl-1_1-x64.dll >nul 2>&1
3434
if %errorlevel% neq 0 exit /b 3
3535

3636
call %~dp0find-target-branch.bat

.github/scripts/windows/find-target-branch.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@echo off
22

3-
findstr /m "PHP_VERSION_ID 800" %~dp0..\..\..\main\php_version.h
3+
findstr /m "PHP_VERSION_ID 800" %~dp0..\..\..\main\php_version.h >nul 2>&1
44
if %errorlevel% equ 0 (
55
set BRANCH=8.0
66
goto :eof
77
)
8-
findstr /m "PHP_VERSION_ID 810" %~dp0..\..\..\main\php_version.h
8+
findstr /m "PHP_VERSION_ID 810" %~dp0..\..\..\main\php_version.h >nul 2>&1
99
if %errorlevel% equ 0 (
1010
set BRANCH=8.1
1111
goto :eof

.github/scripts/windows/test_task.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ if %errorlevel% neq 0 exit /b 3
6868
if %errorlevel% neq 0 exit /b 3
6969

7070
rem prepare for ext/openssl
71-
rmdir /s /q C:\OpenSSL-Win32 >NUL 2>NUL
72-
rmdir /s /q C:\OpenSSL-Win64 >NUL 2>NUL
71+
rmdir /s /q C:\OpenSSL-Win32 >nul 2>&1
72+
rmdir /s /q C:\OpenSSL-Win64 >nul 2>&1
7373
if "%PLATFORM%" == "x86" (
7474
set OPENSSLDIR="C:\Program Files (x86)\Common Files\SSL"
7575
) else (
7676
set OPENSSLDIR="C:\Program Files\Common Files\SSL"
7777
)
7878
if /i "%GITHUB_ACTIONS%" equ "True" (
79-
rmdir /s /q %OPENSSLDIR% >NUL 2>NUL
79+
rmdir /s /q %OPENSSLDIR% >nul 2>&1
8080
)
8181
mkdir %OPENSSLDIR%
8282
if %errorlevel% neq 0 exit /b 3

0 commit comments

Comments
 (0)