fix config list issue

fix multiple package name in config list when updating module
This commit is contained in:
KOWX712
2024-10-31 22:45:21 +08:00
parent 1d105428e2
commit eb3ab39a80

View File

@@ -1,11 +1,11 @@
SKIPUNZIP=0
DEBUG=false
if [ "$MAGISK_VER_CODE" ]; then
BM="Magisk:$MAGISK_VER$MAGISK_VER_CODE"
if [ "$APATCH" ]; then
echo "APatch:$APATCH_VER$APATCH_VER_CODE"
elif [ "$KSU" ]; then
BM="KSU:$KSU_KERNEL_VER_CODE$KSU_VER_CODE"
elif [ "$APATCH" ]; then
BM="APatch:$APATCH_VER$APATCH_VER_CODE"
echo "KSU:$KSU_KERNEL_VER_CODE$KSU_VER_CODE"
elif [ "$MAGISK_VER_CODE" ]; then
echo "Magisk:$MAGISK_VER$MAGISK_VER_CODE"
else
ui_print " ";
ui_print "! recovery is not supported";
@@ -56,7 +56,8 @@ key_check() {
add_exclude() {
for app in $EXCLUDE; do
if ! grep -qx "$app" $COMPATH/EXCLUDE; then
app=$(echo "$app" | tr -d '[:space:]')
if ! grep -Fqx "$app" $COMPATH/EXCLUDE; then
echo "$app" >> $COMPATH/EXCLUDE
fi
done
@@ -65,7 +66,8 @@ add_exclude() {
add_addition() {
for app in $ADDITION; do
if ! grep -qx "$app" $COMPATH/ADDITION; then
app=$(echo "$app" | tr -d '[:space:]')
if ! grep -Fqx "$app" $COMPATH/ADDITION; then
echo "$app" >> $COMPATH/ADDITION
fi
done