Bayridge Hospital Expansion Will Improve Local Emergency Wait Times

Start your journey of cutting through gorgeous landscapes and show off your divine slashing skills with Slice Master! This engaging casual game will open up an endless world with top-notch unique experiences.

The above script will wait for all 10 spawned subprocesses, but it will always give the exit status 0 (see help wait). How can I modify this script so it will discover exit statuses of spawned subprocesses and return exit code 1 when any of the subprocesses ends with code !=0? Is there any better solution for that than collecting PIDs of the subprocesses, waiting for them in order, and summing ...