fix paramlist missing

This commit is contained in:
Trevor Batley 2023-06-06 16:46:48 +10:00
parent 2b60851ea3
commit 1e40fa679c

View File

@ -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