Fixed ST Update Log Match | Tabby API Updater Streamlined.

Fixed ST launch match on update function.
Changed Tabby API update process so confusing instructions are surpressed
This commit is contained in:
Blueprint Coding
2024-08-20 13:06:19 -06:00
parent 2316ebab15
commit 9ba0172d13
2 changed files with 18 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Log file found, scan
:loop
REM Use PowerShell to search for the error message
powershell -Command "try { $content = Get-Content '%logs_st_console_path%' -Raw; if ($content -match 'Error: Cannot find module') { exit 1 } elseif ($content -match 'SillyTavern is listening on:') { exit 0 } else { exit 2 } } catch { exit 2 }"
powershell -Command "try { $content = Get-Content '%logs_st_console_path%' -Raw; if ($content -match 'Error: Cannot find module') { exit 1 } elseif ($content -match 'SillyTavern is listening' -or $content -match 'Go to' -or $content -match '\[\s*\r?\n\s*\x27') { exit 0 } else { exit 2 } } catch { exit 2 }"
set "ps_errorlevel=%errorlevel%"
if %ps_errorlevel% equ 0 (