Closed brandsimon closed 4 years ago
I checked the manpage, and wait
waits for process completion, there is no exit status check.
What am I missing?
See the last sentence in the description of wait
in the bash(1)
man page:
Otherwise, the return status is the exit status of the last process or job waited for.
Ah, now I see, I did not know the set -e
was set.
Thank you.
The
wait
is necessary to check the exit status of the<(cat "${INITRD_PREPEND[@]}" "${initrd}")
process substitution. Otherwise it could fail and the script would continue nonetheless.See c0a7e52aa5ce4dcb1c2de2cf59e66728654a940d.