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:
Ashwin Bhat
2025-11-24 20:52:16 -05:00
parent ed4a4d26bc
commit 6626337d20
2 changed files with 8 additions and 8 deletions

View File

@@ -205,13 +205,13 @@ runs:
( sleep 120; kill $install_pid 2>/dev/null ) & ( sleep 120; kill $install_pid 2>/dev/null ) &
timeout_pid=$! timeout_pid=$!
if wait $install_pid 2>/dev/null; then if wait $install_pid 2>/dev/null; then
kill $timeout_pid 2>/dev/null kill $timeout_pid 2>/dev/null || true
wait $timeout_pid 2>/dev/null wait $timeout_pid 2>/dev/null || true
echo "Claude Code installed successfully" echo "Claude Code installed successfully"
break break
fi fi
kill $timeout_pid 2>/dev/null kill $timeout_pid 2>/dev/null || true
wait $timeout_pid 2>/dev/null wait $timeout_pid 2>/dev/null || true
if [ $attempt -eq 3 ]; then if [ $attempt -eq 3 ]; then
echo "Failed to install Claude Code after 3 attempts" echo "Failed to install Claude Code after 3 attempts"
exit 1 exit 1

View File

@@ -127,13 +127,13 @@ runs:
( sleep 120; kill $install_pid 2>/dev/null ) & ( sleep 120; kill $install_pid 2>/dev/null ) &
timeout_pid=$! timeout_pid=$!
if wait $install_pid 2>/dev/null; then if wait $install_pid 2>/dev/null; then
kill $timeout_pid 2>/dev/null kill $timeout_pid 2>/dev/null || true
wait $timeout_pid 2>/dev/null wait $timeout_pid 2>/dev/null || true
echo "Claude Code installed successfully" echo "Claude Code installed successfully"
break break
fi fi
kill $timeout_pid 2>/dev/null kill $timeout_pid 2>/dev/null || true
wait $timeout_pid 2>/dev/null wait $timeout_pid 2>/dev/null || true
if [ $attempt -eq 3 ]; then if [ $attempt -eq 3 ]; then
echo "Failed to install Claude Code after 3 attempts" echo "Failed to install Claude Code after 3 attempts"
exit 1 exit 1