fix installation process keep going on when tricky store is not installed
This commit is contained in:
KOWX712
2024-10-26 02:22:12 +08:00
parent 9f4f9f73aa
commit 35f07c5b1b
5 changed files with 28 additions and 10 deletions

View File

@@ -2,6 +2,11 @@ MODDIR=${0%/*}
COMPATH="$MODDIR/common"
TS="/data/adb/modules/tricky_store"
if [ ! -f "$COMPATH/ninstalled" ] || [ ! -f "$COMPATH/disabled" ] || [ ! -f "$COMPATH/normal" ]; then
sed -i 's/^description=.*/description=Module is corrupted, please reinstall module./' "$MODDIR/module.prop"
abort
fi
if [ ! -d "$TS" ]; then
cat "$COMPATH/ninstalled" > "$MODDIR/module.prop"
elif [ -f "$TS/disable" ]; then