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 lines with trailing comments containing special chars
This commit is contained in:
@@ -15,7 +15,7 @@ die() { [ "$INSTALL" ] || echo "$N$N! $@"; exit 1; }
|
||||
grep_get_json() {
|
||||
local target="$FILE";
|
||||
[ -n "$2" ] && target="$2";
|
||||
eval set -- "$(cat "$target" | tr -d '\r\n' | grep -m1 -o "$1"'".*' | cut -d: -f2-)";
|
||||
eval set -- "$(cat "$target" | tr -d '\r\n' | grep -m1 -o "$1"'".*' | cut -d: -f2- | sed 's|//|#|g')";
|
||||
echo "$1" | sed -e 's|"|\\\\\\"|g' -e 's|[,}]*$||';
|
||||
}
|
||||
grep_check_json() {
|
||||
|
||||
Reference in New Issue
Block a user