From 1e40fa679ca1f3caa07dd187dae6198c456a17c6 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Tue, 6 Jun 2023 16:46:48 +1000 Subject: [PATCH] fix paramlist missing --- parse-list.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/parse-list.sh b/parse-list.sh index c4cd20b..d968b39 100755 --- a/parse-list.sh +++ b/parse-list.sh @@ -103,9 +103,7 @@ if [ $PROCESSORG ] ; then # we have them all break else - echo $RESPONSE | grep -oP '(?<="name":").+?(?=")' | while read repo; do - PARAMLIST+=($repo) - done + PARAMLIST="$PARAMLIST $(echo $RESPONSE | grep -oP '(?<="name":").+?(?=")')" fi done else @@ -118,7 +116,10 @@ for param in ${PARAMLIST[@]} do if [[ $NOISY || $REVIEW ]] ; then echo "$2 $param $EXTRAPARAMS" ; fi if [[ -z $REVIEW ]] ; then - if [[ $param ]] ; then $2 $param $EXTRAPARAMS ; fi + if [[ $param ]] ; then + RESPONSE=$($2 $param $EXTRAPARAMS) + if [ $DEBUG ] ; then echo "RESPONSE=$RESPONSE" ; fi + fi fi done