uh
This commit is contained in:
		| @@ -15,7 +15,7 @@ do | |||||||
|     if [[ "$jobs" -ge "$update_limit" ]]; then |     if [[ "$jobs" -ge "$update_limit" ]]; then | ||||||
|         sleep 3 |         sleep 3 | ||||||
|     else |     else | ||||||
|         mapfile -t output < <(update_apps "${array[$it]}") & |         coproc update_appsfd { update_apps "${array[$it]}" ; } | ||||||
|         processes+=($!) |         processes+=($!) | ||||||
|         ((it++)) |         ((it++)) | ||||||
|     fi |     fi | ||||||
| @@ -26,13 +26,9 @@ do | |||||||
|     wait "$proc" |     wait "$proc" | ||||||
| done | done | ||||||
|  |  | ||||||
|  | IFS= read -r -d '' -u "${update_appsfd[0]}" update_output | ||||||
|  |  | ||||||
| for i in "${output[@]}" | echo "$update_output" | ||||||
| do |  | ||||||
|     echo "$i" |  | ||||||
| done |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user