mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-22 22:44:13 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user