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 # we have them all
break break
else else
echo $RESPONSE | grep -oP '(?<="name":").+?(?=")' | while read repo; do PARAMLIST="$PARAMLIST $(echo $RESPONSE | grep -oP '(?<="name":").+?(?=")')"
PARAMLIST+=($repo)
done
fi fi
done done
else else
@ -118,7 +116,10 @@ for param in ${PARAMLIST[@]}
do do
if [[ $NOISY || $REVIEW ]] ; then echo "$2 $param $EXTRAPARAMS" ; fi if [[ $NOISY || $REVIEW ]] ; then echo "$2 $param $EXTRAPARAMS" ; fi
if [[ -z $REVIEW ]] ; then 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 fi
done done