From 27fc24337b2d89c624b4ee7203ef6f4ed463766e Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Mon, 23 Sep 2024 22:37:36 -0300 Subject: [PATCH] Copy pasta fixes --- module/autopif.sh | 2 +- module/migrate.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/autopif.sh b/module/autopif.sh index 5396af6..5319a20 100644 --- a/module/autopif.sh +++ b/module/autopif.sh @@ -108,8 +108,8 @@ if [ -f "$MIGRATE" ]; then eval TMPVAL=\$$SETTING; [ -n "$TMPVAL" ] && sed -i "s;\($SETTING\": \"\).;\1$TMPVAL;" custom.pif.json; done; - grep -q '//"\*.security_patch"' $OLDJSON && sed -i 's;"\*.security_patch";//"\*.security_patch";' custom.pif.json; fi; + grep -q '//"\*.security_patch"' $OLDJSON && sed -i 's;"\*.security_patch";//"\*.security_patch";' custom.pif.json; cat custom.pif.json; fi; diff --git a/module/migrate.sh b/module/migrate.sh index d11f575..82f4095 100644 --- a/module/migrate.sh +++ b/module/migrate.sh @@ -131,7 +131,7 @@ if [ -f "$OUT" ]; then for SETTING in $ADVSETTINGS; do eval grep_check_json $SETTING \"$OUT.bak\" \&\& $SETTING=\"$(grep_get_json $SETTING "$OUT.bak")\"; done; - grep -q '//"\*.security_patch"' "$OUT.bak" && SECURITY_COMMENT='//'; + grep -q '//"\*.security_patch"' "$OUT.bak" && SECURITY_COMMENT='//'; fi; fi;