fix: suppress exit code from killed timeout watchdog process
When killing the timeout watchdog process after successful installation, `wait` returns exit code 143 (SIGTERM). Add `|| true` to prevent this from causing the step to fail. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
ed4a4d26bc
commit
6626337d20
@ -205,13 +205,13 @@ runs:
|
||||
( sleep 120; kill $install_pid 2>/dev/null ) &
|
||||
timeout_pid=$!
|
||||
if wait $install_pid 2>/dev/null; then
|
||||
kill $timeout_pid 2>/dev/null
|
||||
wait $timeout_pid 2>/dev/null
|
||||
kill $timeout_pid 2>/dev/null || true
|
||||
wait $timeout_pid 2>/dev/null || true
|
||||
echo "Claude Code installed successfully"
|
||||
break
|
||||
fi
|
||||
kill $timeout_pid 2>/dev/null
|
||||
wait $timeout_pid 2>/dev/null
|
||||
kill $timeout_pid 2>/dev/null || true
|
||||
wait $timeout_pid 2>/dev/null || true
|
||||
if [ $attempt -eq 3 ]; then
|
||||
echo "Failed to install Claude Code after 3 attempts"
|
||||
exit 1
|
||||
|
||||
@ -127,13 +127,13 @@ runs:
|
||||
( sleep 120; kill $install_pid 2>/dev/null ) &
|
||||
timeout_pid=$!
|
||||
if wait $install_pid 2>/dev/null; then
|
||||
kill $timeout_pid 2>/dev/null
|
||||
wait $timeout_pid 2>/dev/null
|
||||
kill $timeout_pid 2>/dev/null || true
|
||||
wait $timeout_pid 2>/dev/null || true
|
||||
echo "Claude Code installed successfully"
|
||||
break
|
||||
fi
|
||||
kill $timeout_pid 2>/dev/null
|
||||
wait $timeout_pid 2>/dev/null
|
||||
kill $timeout_pid 2>/dev/null || true
|
||||
wait $timeout_pid 2>/dev/null || true
|
||||
if [ $attempt -eq 3 ]; then
|
||||
echo "Failed to install Claude Code after 3 attempts"
|
||||
exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user