Bugfix: Incorrect JSON parsing when inside mawk.

This commit is contained in:
Jorge Bucaran 2016-05-15 15:52:21 +09:00
parent 59ec5b3a0c
commit bfc305528e
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -951,14 +951,14 @@ function __fisher_remote_index_update
curl --max-time 10 -s 'https://api.github.com/orgs/fisherman/repos?per_page=100' | awk -v ORS='' '
{
gsub(/[{}\[\]]|^[\t ]*/, \"\")
gsub(/[{}\[\]]/, \"\")
} //
' | awk '
{
n = split(\$0, a, /,\"/)
n = split(\$0, a, /,[\t ]*\"/)
for (i = 1; i <= n; i++) {
gsub(/\"/, \"\", a[i])