mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-12-14 06:10:32 +08:00
fix: Error checking (#446)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -u
|
set -Eeuo pipefail
|
||||||
|
|
||||||
[ ! -f "/run/qemu.pid" ] && echo "QEMU not running yet.." && exit 0
|
[ ! -f "/run/qemu.pid" ] && echo "QEMU not running yet.." && exit 0
|
||||||
[ -f "/run/qemu.count" ] && echo "QEMU is shutting down.." && exit 1
|
[ -f "/run/qemu.count" ] && echo "QEMU is shutting down.." && exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user