diff --git a/src/power.sh b/src/power.sh index b8f767d..0195c08 100644 --- a/src/power.sh +++ b/src/power.sh @@ -50,7 +50,7 @@ finish() { # Workaround for zombie pid [ ! -s "$QEMU_PID" ] && break - if [ "$cnt" == "5" ]; then + if [ "$cnt" -eq 5 ]; then echo && error "QEMU did not terminate itself, forcefully killing process..." { kill -9 "$pid" || true; } 2>/dev/null fi