mirror of
https://github.com/ReVanced/revanced-cli.git
synced 2026-01-17 16:33:58 +00:00
chore: Add click-to-run scripts
This commit is contained in:
20
scripts/modules/delete.bat
Normal file
20
scripts/modules/delete.bat
Normal file
@@ -0,0 +1,20 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
if "%~1"=="" (
|
||||
set INVALID_ARGS=true
|
||||
)
|
||||
if defined INVALID_ARGS (
|
||||
echo Deletes a directory relative to the current directory using the rmdir command.
|
||||
echo:
|
||||
echo Usage: delete ^<path^>
|
||||
echo Example: delete C:/revanced
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
set DIRECTORY=%1
|
||||
|
||||
if exist %DIRECTORY% (
|
||||
echo Confirm deletion of
|
||||
run rmdir /s %DIRECTORY%
|
||||
)
|
||||
Reference in New Issue
Block a user