fix: Error checking (#446)

This commit is contained in:
Kroese 2023-12-09 21:45:31 +01:00 committed by GitHub
parent a8bcae16a4
commit ba7fd2fe4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -u
set -Eeuo pipefail
[ ! -f "/run/qemu.pid" ] && echo "QEMU not running yet.." && exit 0
[ -f "/run/qemu.count" ] && echo "QEMU is shutting down.." && exit 1