From f9f1499e8857435b3bb7553de710228e01e2ef6a Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Sat, 21 Sep 2024 10:03:13 +0800 Subject: [PATCH] Fix jq query - should address the following error condition: jq: error: count/0 is not defined at , 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. --- tfc-dump.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tfc-dump.pl b/tfc-dump.pl index 53c034c..81f1149 100755 --- a/tfc-dump.pl +++ b/tfc-dump.pl @@ -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);