Add script to remove all scripts from device

This commit is contained in:
Evgeny
2023-09-12 15:52:28 +04:00
parent de23ba41de
commit 7868273f74
3 changed files with 10 additions and 3 deletions

3
env Normal file
View File

@@ -0,0 +1,3 @@
REPOS="main ru samples community"
SCRIPTS_DIR="/sdcard/Android/data/ru.execbit.aiolauncher/files/"

View File

@@ -1,9 +1,8 @@
#!/bin/sh
REPOS="main ru samples community"
SCRIPTS_DIR="/sdcard/Android/data/ru.execbit.aiolauncher/files/"
source ./env
adb shell rm -rf $SCRIPTS_DIR/*.lua
./rm-scripts.sh
for repo in $REPOS; do
adb push $repo/*.lua $SCRIPTS_DIR

5
rm-scripts.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
source ./env
adb shell rm -rf $SCRIPTS_DIR/*.lua