Unverified Commit 9640cd27 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Improve wait command logic

parent 231e94e7
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -38,7 +38,13 @@ else
fi
 
rc=0

if [[ "$DEBUG" == [Yy1]* ]]; then
  wait $! || rc=$?
else
  { wait $! 2>/dev/null; rc=$?; } || rc=$?
fi

[ -f "$QEMU_END" ] && exit "$rc"

sleep 1 & wait $!