You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
migrate.sh: fix parsing for \" and , in json values
This commit is contained in:
@@ -15,7 +15,7 @@ esac;
|
||||
|
||||
item() { echo "- $@"; }
|
||||
die() { [ "$INSTALL" ] || echo "$N$N! $@"; exit 1; }
|
||||
grep_get_json() { cat "$FILE" | tr -d '\r\n' | grep -m1 -owE "$1"'"[^,}]+"' | cut -d\" -f3; }
|
||||
grep_get_json() { eval set -- "$(cat "$FILE" | tr -d '\r\n' | grep -m1 -o "$1"'.*' | cut -d: -f2-)"; echo "$1" | sed -e 's|"|\\\\\\"|g' -e 's/[,}]$//'; }
|
||||
grep_check_json() { grep -q "$1" "$FILE" && [ "$(grep_get_json $1)" ]; }
|
||||
|
||||
case "$1" in
|
||||
|
||||
Reference in New Issue
Block a user