From 7d5237b54df2592b6a5eb03f50bf66fb5b696500 Mon Sep 17 00:00:00 2001 From: OSPanel <93676052+OSPanel@users.noreply.github.com> Date: Wed, 17 Apr 2024 15:06:57 +0300 Subject: [PATCH] Update osp.bat --- system/templates/osp.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/templates/osp.bat b/system/templates/osp.bat index b197bc99a..130ae4946 100644 --- a/system/templates/osp.bat +++ b/system/templates/osp.bat @@ -382,7 +382,7 @@ for %%a in (%OSP_TMPVAL%) do ( "{root_dir}\system\bin\curl.exe" -f -s {cmd_api_url}/%1/%%a/%3 if !errorlevel! gtr 0 call :echo_error %1 %OSP_TMP_NAME% %3 ) - if !errorlevel!==0 if /i "%1"=="status" if exist "{root_dir}\logs\%%a.log" for %%S in ("{root_dir}\logs\%%a.log") do if not %%~zS==0 echo: & "{root_dir}\system\bin\fd.exe" -e log -a -i -p %%a "{root_dir}\logs" -x "{root_dir}\system\bin\tail.bat" {} 15 & echo %ESC%[0m + if !errorlevel!==0 if /i "%1"=="status" if exist "{root_dir}\logs\%%a.log" for %%S in ("{root_dir}\logs\%%a.log") do if not %%~zS==0 echo: & "{root_dir}\system\bin\fd.exe" -e log -a -i -p %%a[\.\\A-Za-z0-9]+ "{root_dir}\logs" -x "{root_dir}\system\bin\tail.bat" {} 15 & echo %ESC%[0m ) endlocal goto end