mirror of
https://github.com/jorgebucaran/fisher
synced 2024-08-17 12:31:05 +02:00
Bugfix: Incorrect JSON parsing when inside mawk.
This commit is contained in:
parent
1473db7867
commit
b5b081e8a4
1 changed files with 2 additions and 2 deletions
|
@ -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='' '
|
curl --max-time 10 -s 'https://api.github.com/orgs/fisherman/repos?per_page=100' | awk -v ORS='' '
|
||||||
|
|
||||||
{
|
{
|
||||||
gsub(/[{}\[\]]|^[\t ]*/, \"\")
|
gsub(/[{}\[\]]/, \"\")
|
||||||
|
|
||||||
} //
|
} //
|
||||||
|
|
||||||
' | awk '
|
' | awk '
|
||||||
|
|
||||||
{
|
{
|
||||||
n = split(\$0, a, /,\"/)
|
n = split(\$0, a, /,[\t ]*\"/)
|
||||||
|
|
||||||
for (i = 1; i <= n; i++) {
|
for (i = 1; i <= n; i++) {
|
||||||
gsub(/\"/, \"\", a[i])
|
gsub(/\"/, \"\", a[i])
|
||||||
|
|
Loading…
Reference in a new issue