From 8a8d929e5aaf949cc5af27ba1887fc6a4fcd2628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Tue, 30 Jan 2024 12:44:16 +0100 Subject: [PATCH] Working on _blog_idx_for_index --- qsgen2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qsgen2 b/qsgen2 index 858f028..4bdaad2 100755 --- a/qsgen2 +++ b/qsgen2 @@ -541,10 +541,12 @@ function _blog_idx_for_index() { do echo "0. ${blogs}" local index_array=("${(@s/||/)blogs}") - echo "1. ${index_array[URL]}" - echo "2. ${index_array[BTITLE]}" - echo "3. ${index_array[SDATE[@]]}" - echo "4. ${index_array[INGRESS]}" + for item in ${index_array[@]} + echo "1. ${item[URL]}" + echo "2. ${item[BTITLE]}" + echo "3. ${item[SDATE[@]]}" + echo "4. ${item[INGRESS]}" + done done }