change to an array
This commit is contained in:
parent
67c2f39f86
commit
e1e7c52953
@ -14,9 +14,9 @@ it=0
|
||||
while_count=0
|
||||
while true
|
||||
do
|
||||
if while_status=$(cli -m csv -c 'app chart_release query name,update_available,human_version,human_latest_version,status' 2>/dev/null) ; then
|
||||
if mapfile -t while_status < <(cli -m csv -c 'app chart_release query name,update_available,human_version,human_latest_version,status' 2>/dev/null) ; then
|
||||
((while_count++))
|
||||
[[ -z $while_status ]] && continue || echo -e "$while_count\n$while_status" > temp.txt
|
||||
[[ -z ${while_status[*]} ]] && continue || echo -e "$while_count\n${while_status[*]}" > temp.txt
|
||||
for i in "${while_status[@]}"
|
||||
do
|
||||
app_name=$(echo "$i" | awk -F ',' '{print $1}')
|
||||
|
Loading…
Reference in New Issue
Block a user