Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
shell jons wait
# wait for background jobs
while true; do
wait -n || {
code="$?"
([[ $code = "127" ]] && exit 0 || exit "$code")
break
}
done;
# or just
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.