Skip to content

Commit

Permalink
autopif.sh: retain commented security_patch if present
Browse files Browse the repository at this point in the history
- commenting out the security_patch line is needed if enabling spoofProps (e.g. for api_level) when used with Tricky Store
  • Loading branch information
osm0sis committed Sep 12, 2024
1 parent 1255a49 commit 915b87e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions module/autopif.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ 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;
cat custom.pif.json;
fi;
Expand Down

0 comments on commit 915b87e

Please sign in to comment.