From 2b60851ea39ec45659265625a712321994efacbc Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Tue, 6 Jun 2023 12:26:36 +1000 Subject: [PATCH] encapsulate params --- parse-list.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse-list.sh b/parse-list.sh index b3fc507..c4cd20b 100755 --- a/parse-list.sh +++ b/parse-list.sh @@ -104,13 +104,13 @@ if [ $PROCESSORG ] ; then break else echo $RESPONSE | grep -oP '(?<="name":").+?(?=")' | while read repo; do - PARAMLIST+=$repo + PARAMLIST+=($repo) done fi done else # load array of parameters from input file - while read -r line ; do PARAMLIST+=$line ; done < $1 + while read -r line ; do PARAMLIST+=($line) ; done < $1 fi # Cycle through array of parameters and execute script