rename it to index
This commit is contained in:
parent
ad0c8e07f5
commit
c055708850
@ -43,10 +43,10 @@ do
|
|||||||
((index++))
|
((index++))
|
||||||
done
|
done
|
||||||
array=("${array[@]}")
|
array=("${array[@]}")
|
||||||
[[ ${#array[@]} == 0 ]] && return
|
[[ ${#array[@]} == 0 ]] && echo && echo && return
|
||||||
|
|
||||||
|
|
||||||
it=0
|
index=0
|
||||||
while_count=0
|
while_count=0
|
||||||
rm deploying 2>/dev/null
|
rm deploying 2>/dev/null
|
||||||
rm finished 2>/dev/null
|
rm finished 2>/dev/null
|
||||||
@ -75,10 +75,10 @@ do
|
|||||||
((count++))
|
((count++))
|
||||||
done
|
done
|
||||||
processes=("${processes[@]}")
|
processes=("${processes[@]}")
|
||||||
if [[ $it -lt ${#array[@]} && "${#processes[@]}" -lt "$update_limit" ]]; then
|
if [[ $index -lt ${#array[@]} && "${#processes[@]}" -lt "$update_limit" ]]; then
|
||||||
pre_process "${array[$it]}" &
|
pre_process "${array[$index]}" &
|
||||||
processes+=($!)
|
processes+=($!)
|
||||||
((it++))
|
((index++))
|
||||||
else
|
else
|
||||||
sleep 3
|
sleep 3
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user