Unverified Commit 84095d61 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Skip shutdown message when launch failed (#1101)

parent 718ef84a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ finish() {
  local pids=( "$TPM_PID" "$WSD_PID" "$WEB_PID" "$PASST_PID" "$DNSMASQ_PID" "${BALLOONING_PID:-}" )

  touch "$QEMU_END"
  (( reason > 1 )) && (( reason < 129 )) && echo "QEMU exitcode: $reason"

  if [ -s "$QEMU_PID" ]; then
    if read -r pid <"$QEMU_PID"; then
@@ -60,7 +59,7 @@ finish() {
    warn "Timed out while waiting for $(app) to exit!"
  fi

  echo && echo "❯ Shutdown completed!"
  (( reason != 1 )) && echo && echo "❯ Shutdown completed!"
  exit "$reason"
}