refactor code

simplify, bug fix, unify variable name
This commit is contained in:
KOWX712
2024-10-28 21:28:56 +08:00
parent 4a7437705c
commit 1ebe14c646
5 changed files with 58 additions and 51 deletions

View File

@@ -1,9 +1,9 @@
MODDIR="/data/adb/tricky_store"
# Remove residue and restore original keybox.
MODPATH=${0%/*}
rm -rf "$MODDIR/target_list_config"
rm -f "$MODDIR/UpdateTargetList.sh"
TS="/data/adb/tricky_store"
# Remove residue and restore original keybox.
rm -rf "$TS/target_list_config"
rm -f "$TS/UpdateTargetList.sh"
if [ -f "$MODPATH/common/origkeybox" ]; then
rm -f "$MODDIR/keybox.xml"
mv "$MODPATH/common/origkeybox" "$MODDIR/keybox.xml"
rm -f "$TS/keybox.xml"
mv "$MODPATH/common/origkeybox" "$TS/keybox.xml"
fi