feat: Simplify increment syntax (#1747)

This commit is contained in:
Kroese
2026-05-29 15:50:53 +02:00
committed by GitHub
parent 0bc2380452
commit 6e45deea2f
4 changed files with 10 additions and 44 deletions
+3 -3
View File
@@ -92,7 +92,7 @@ finish() {
while isAlive "$pid"; do
sleep 1
cnt=$((cnt+1))
(( cnt++ ))
# Workaround for zombie pid
[ ! -s "$QEMU_PID" ] && break
@@ -120,7 +120,7 @@ finish() {
for pid in "${pids[@]}"; do
if [[ -s "$pid" ]]; then
pKill "$(cat "$pid")"
pKill "$(<"$pid")"
fi
rm -f "$pid"
done
@@ -210,7 +210,7 @@ _graceful_shutdown() {
while [ "$cnt" -lt "$QEMU_TIMEOUT" ]; do
sleep 1
cnt=$((cnt+1))
(( cnt++ ))
! isAlive "$pid" && break
# Workaround for zombie pid