Skip to content

Commit

Permalink
migrate.sh: fix parsing lines with trailing comments containing speci…
Browse files Browse the repository at this point in the history
…al chars
  • Loading branch information
osm0sis authored Oct 22, 2024
1 parent 7233c66 commit bc591c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

2 comments on commit bc591c5

@fuengfah
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we use Scripts-only mode but also need to use spoofing Advanced Settings. How can we do that?

@osm0sis
Copy link
Owner Author

@osm0sis osm0sis commented on bc591c5 Oct 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those can't be done at the same time. Scripts-only mode is scripts-only. Ask questions on xda in the future please. Unrelated GitHub commits aren't a helpdesk.

Please sign in to comment.