update
This commit is contained in:
parent
69875f8fda
commit
26bfaf5306
@ -15,8 +15,7 @@ do
|
|||||||
if [[ "$jobs" -ge "$update_limit" ]]; then
|
if [[ "$jobs" -ge "$update_limit" ]]; then
|
||||||
sleep 3
|
sleep 3
|
||||||
else
|
else
|
||||||
application="${array[$it]}"
|
update_apps "${array[$it]}" &
|
||||||
update_apps "$application" &
|
|
||||||
processes+=($!)
|
processes+=($!)
|
||||||
((it++))
|
((it++))
|
||||||
fi
|
fi
|
||||||
@ -32,6 +31,7 @@ done
|
|||||||
export -f commander
|
export -f commander
|
||||||
|
|
||||||
update_apps(){
|
update_apps(){
|
||||||
|
i=${array[$it]}
|
||||||
app_name=$(echo "$i" | awk -F ',' '{print $1}') #print out first catagory, name.
|
app_name=$(echo "$i" | awk -F ',' '{print $1}') #print out first catagory, name.
|
||||||
old_app_ver=$(echo "$i" | awk -F ',' '{print $4}' | awk -F '_' '{print $1}' | awk -F '.' '{print $1}') #previous/current Application MAJOR Version
|
old_app_ver=$(echo "$i" | awk -F ',' '{print $4}' | awk -F '_' '{print $1}' | awk -F '.' '{print $1}') #previous/current Application MAJOR Version
|
||||||
new_app_ver=$(echo "$i" | awk -F ',' '{print $5}' | awk -F '_' '{print $1}' | awk -F '.' '{print $1}') #new Application MAJOR Version
|
new_app_ver=$(echo "$i" | awk -F ',' '{print $5}' | awk -F '_' '{print $1}' | awk -F '.' '{print $1}') #new Application MAJOR Version
|
||||||
|
Loading…
Reference in New Issue
Block a user