Enhance Cross-Platform Argument Handling for Nitro Startup Scripts (#674)

* Patch all argument of bat script to nitro command run

---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
This commit is contained in:
hiento09 2023-11-21 13:49:32 +07:00 committed by GitHub
parent 0dd70824e8
commit fe3d682530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,11 +2,11 @@
rem Attempt to run nitro_windows_amd64_cuda.exe rem Attempt to run nitro_windows_amd64_cuda.exe
cd win-cuda cd win-cuda
nitro.exe nitro.exe %*
rem Check the exit code of the previous command rem Check the exit code of the previous command
if %errorlevel% neq 0 ( if %errorlevel% neq 0 (
echo nitro_windows_amd64_cuda.exe encountered an error, attempting to run nitro_windows_amd64.exe... echo nitro_windows_amd64_cuda.exe encountered an error, attempting to run nitro_windows_amd64.exe...
cd ..\win-cpu cd ..\win-cpu
nitro.exe nitro.exe %*
) )