Allow multiple refreshes

by sending multiple `HUP` kill commands to the container.
This commit is contained in:
zstadler 2022-03-06 16:33:56 +02:00
parent a766dfd233
commit edd7c7dd87

View file

@ -24,6 +24,10 @@ if ! which -- "${1}"; then
# Wait exits immediately on signals which have traps set. Store return value and wait
# again for all jobs to actually complete before continuing.
wait $! || RETVAL=$?
while [ ${RETVAL} = 129 ] ; do
# Refressh signal HUP received. Continue waiting for signals.
wait $! || RETVAL=$?
done
wait
exit ${RETVAL}
fi