diff options
| author | Bryan Thompson <238056179+bryan-anthropic@users.noreply.github.com> | 2026-08-20 14:50:15 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-20 14:50:15 -0500 |
| commit | 240c4b2c17b19868e880f2bfdd909144d67224e1 (patch) | |
| tree | 9deddb18cf7c137cd56c93b25763eba0946a7ad6 /plugins/claude-security/scripts/keep-waiting.sh | |
| parent | 81182783dc1c15ae70e8a489b1edee5450b1434d (diff) | |
| parent | cbe94d02bc8ea7375e13b39cc400e17eeabfcbee (diff) | |
Merge branch 'main' into add-unleashadd-unleash
Diffstat (limited to 'plugins/claude-security/scripts/keep-waiting.sh')
| -rwxr-xr-x | plugins/claude-security/scripts/keep-waiting.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/claude-security/scripts/keep-waiting.sh b/plugins/claude-security/scripts/keep-waiting.sh new file mode 100755 index 00000000..8920d36d --- /dev/null +++ b/plugins/claude-security/scripts/keep-waiting.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# Hold the Security Lead's turn while the scan workflow runs: wait, then tell the +# caller to run this again unless the workflow's result has arrived. +# Usage: keep-waiting.sh [SECONDS] (1 to 110, default 90; exits 2 on a bad value) +# The wait stays under the Bash tool's two-minute default timeout, past which a +# command is moved to the background and no longer holds the turn. +seconds=${1:-90} +case $seconds in '' | *[!0-9]*) seconds=0 ;; esac +if [ "$seconds" -lt 1 ] || [ "$seconds" -gt 110 ]; then + echo "usage: keep-waiting.sh [SECONDS between 1 and 110]" >&2 + exit 2 +fi +sleep "$seconds" +echo "Waited ${seconds}s. If the scan workflow's result has not arrived, run this same command again now; do not reply to the user or end your turn until it arrives." |
