Copy pasta fixes

This commit is contained in:
Chris Renshaw
2024-09-23 22:37:36 -03:00
committed by GitHub
parent 796f776534
commit 27fc24337b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;