From 650628387443123969c183e2d06b13f424d6fe16 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Sat, 30 Aug 2025 23:04:07 -0300 Subject: [PATCH] Fix custom.pif.json migration check on clean installs --- module/customize.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/module/customize.sh b/module/customize.sh index 7813d28..18f94cc 100644 --- a/module/customize.sh +++ b/module/customize.sh @@ -39,12 +39,14 @@ if [ -d "$MODPATH/zygisk" ]; then fi # Migrate custom.pif.json to latest defaults if needed -if [ -f "$MODPATH/custom.pif.json" ] && ! grep -q "api_level" $MODPATH/custom.pif.json || ! grep -q "verboseLogs" $MODPATH/custom.pif.json || ! grep -q "spoofVendingSdk" $MODPATH/custom.pif.json; then - ui_print "- Running migration script on custom.pif.json:" - ui_print " " - chmod 755 $MODPATH/migrate.sh - sh $MODPATH/migrate.sh --install --force --advanced $MODPATH/custom.pif.json - ui_print " " +if [ -f "$MODPATH/custom.pif.json" ]; then + if ! grep -q "api_level" $MODPATH/custom.pif.json || ! grep -q "verboseLogs" $MODPATH/custom.pif.json || ! grep -q "spoofVendingFinger" $MODPATH/custom.pif.json; then + ui_print "- Running migration script on custom.pif.json:" + ui_print " " + chmod 755 $MODPATH/migrate.sh + sh $MODPATH/migrate.sh --install --force --advanced $MODPATH/custom.pif.json + ui_print " " + fi fi # Clean up any leftover files from previous deprecated methods