Unverified Commit 87a7c7d3 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Handle unset PID variables (#1106)

parent c4a39341
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -31,7 +31,8 @@ finish() {
  local i=0
  local pid=""
  local reason=$1
  local pids=( "$TPM_PID" "$WSD_PID" "$WEB_PID" "$PASST_PID" "$DNSMASQ_PID" "${BALLOONING_PID:-}" )
  local pids=( "${TPM_PID:-}" "${WSD_PID:-}" "${WEB_PID:-}" \
               "${PASST_PID:-}" "${DNSMASQ_PID:-}" "${BALLOONING_PID:-}" )

  touch "$QEMU_END"