mirror of
https://github.com/ReVanced/revanced-cli.git
synced 2026-01-18 00:43:58 +00:00
chore: Add click-to-run scripts
This commit is contained in:
23
scripts/modules/run.bat
Normal file
23
scripts/modules/run.bat
Normal file
@@ -0,0 +1,23 @@
|
||||
@echo off
|
||||
|
||||
if "%~1"=="" (
|
||||
set INVALID_ARGS=true
|
||||
)
|
||||
if defined INVALID_ARGS (
|
||||
echo Run a command with arguments.
|
||||
echo:
|
||||
echo Usage: run.bat ^<command^> [arguments]
|
||||
echo Example: run.bat echo Hello, World!
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
%*
|
||||
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
echo:
|
||||
echo Failed to run command with exit code %ERRORLEVEL%.
|
||||
echo Failed command: %*
|
||||
echo:
|
||||
pause
|
||||
exit /b %ERRORLEVEL%
|
||||
)
|
||||
Reference in New Issue
Block a user