Skip to content

Commit

Permalink
Fix jq query
Browse files Browse the repository at this point in the history
- should address the following error condition:
jq: error: count/0 is not defined at <top-level>, line 1:
.meta.total-count            
jq: 1 compile error
Argument "" isn't numeric in numeric gt (>) at /usr/local/bin/tfc-dump.pl line 165.
  • Loading branch information
briskt authored Sep 21, 2024
1 parent a575202 commit f9f1499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfc-dump.pl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@

# Get the number of Variable Sets

$jq_cmd = "cat $tmpfile | jq '.meta.total-count'";
$jq_cmd = "cat $tmpfile | jq '.meta.pagination[\"total-count\"]'";
$total_count = `$jq_cmd`;
unlink($tmpfile);

Expand Down

0 comments on commit f9f1499

Please sign in to comment.