mirror of
https://github.com/MiSTer-devel/Distribution_MiSTer.git
synced 2026-05-17 03:03:37 +00:00
Catching failing childs
This commit is contained in:
committed by
GitHub
parent
fb1326ee11
commit
5064b7db98
10
.github/update_distribution.sh
vendored
10
.github/update_distribution.sh
vendored
@@ -22,7 +22,15 @@ update_distribution() {
|
||||
done
|
||||
done
|
||||
|
||||
wait
|
||||
FAILING_CHILD=
|
||||
for job in `jobs -p` ; do
|
||||
wait ${job} || let "FAILING_CHILD=${job}"
|
||||
done
|
||||
|
||||
if [[ "${FAILING_CHILD}" != "" ]] ; then
|
||||
echo "Child failed: ${FAILING_CHILD}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "${PUSH_COMMAND}" != "--push" ]] ; then
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user