@@ -350,7 +350,7 @@ create_issue()
350
350
# get milestone list
351
351
rest_api_get " $mileurl " milestone " $provider "
352
352
353
- for i in $( seq 0 $(( $( jq '. | length' milestone- body) - 1 )) ) ; do
353
+ for i in $( jq ' range( .| length ) ' milestone-body ) ; do
354
354
milenum=$( jq -r " .[$i ].$jmileid " milestone-body)
355
355
miletitle=$( jq -r " .[$i ].title" milestone-body)
356
356
if [ " $miletitle " = " $milestone " ] ; then
@@ -573,7 +573,7 @@ import_comments()
573
573
rest_api_get " $endpoint " comments " $provider "
574
574
575
575
# For each comment in the comments-body file
576
- for i in $( seq 0 $(( $( jq '. | length' comments- body) - 1 )) ) ; do
576
+ for i in $( jq ' range( .| length ) ' comments-body ) ; do
577
577
# Dont import automated system comments
578
578
test ! " $( jq -r " .[$i ].system" comments-body) " = true || continue
579
579
comment_id=$( jq -r " .[$i ].id" comments-body)
@@ -663,7 +663,7 @@ import_issues()
663
663
fi
664
664
665
665
# For each issue in the issue-body file
666
- for i in $( seq 0 $(( $( jq '. | length' issue- body) - 1 )) ) ; do
666
+ for i in $( jq ' range( .| length ) ' issue-body ) ; do
667
667
issue_number=$( jq -r " .[$i ].$jid " issue-body)
668
668
669
669
# See if issue already there
0 commit comments