Skip to content

Commit

Permalink
fix: Trap exit code (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed Jan 23, 2024
1 parent fdbff48 commit 7790f81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/power.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ terminal() {

_graceful_shutdown() {

local cnt=0
local code=$?
local pid url response

Expand Down Expand Up @@ -144,6 +143,8 @@ _graceful_shutdown() {

fi

local cnt=0

while [ "$cnt" -lt "$QEMU_TIMEOUT" ]; do

! isAlive "$pid" && break
Expand Down

0 comments on commit 7790f81

Please sign in to comment.