diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-06-01 14:02:13 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-06-02 15:35:26 -0700 |
| commit | cb6bdf9dd3bc2bc67069529e57c620d769667e42 (patch) | |
| tree | b3b4c39d9f6e601b3ac9b1d2c0619c4405930f0b /skills/brainstorming | |
| parent | d7c260a97838a90bd39930ec42080c19b39cb4ad (diff) | |
Fix shell lint baseline warningscodex/shell-lint-baseline-fixes
Diffstat (limited to 'skills/brainstorming')
| -rwxr-xr-x | skills/brainstorming/scripts/start-server.sh | 4 | ||||
| -rwxr-xr-x | skills/brainstorming/scripts/stop-server.sh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/skills/brainstorming/scripts/start-server.sh b/skills/brainstorming/scripts/start-server.sh index 5ef391b..8eebe61 100755 --- a/skills/brainstorming/scripts/start-server.sh +++ b/skills/brainstorming/scripts/start-server.sh @@ -97,7 +97,7 @@ if [[ -f "$PID_FILE" ]]; then rm -f "$PID_FILE" fi -cd "$SCRIPT_DIR" +cd "$SCRIPT_DIR" || exit # Resolve the harness PID (grandparent of this script). # $PPID is the ephemeral shell the harness spawned to run us — it dies @@ -135,7 +135,7 @@ disown "$SERVER_PID" 2>/dev/null echo "$SERVER_PID" > "$PID_FILE" # Wait for server-started message (check log file) -for i in {1..50}; do +for _ in {1..50}; do if grep -q "server-started" "$LOG_FILE" 2>/dev/null; then # Verify server is still alive after a short window (catches process reapers) alive="true" diff --git a/skills/brainstorming/scripts/stop-server.sh b/skills/brainstorming/scripts/stop-server.sh index a6b94e6..6fa687f 100755 --- a/skills/brainstorming/scripts/stop-server.sh +++ b/skills/brainstorming/scripts/stop-server.sh @@ -23,7 +23,7 @@ if [[ -f "$PID_FILE" ]]; then kill "$pid" 2>/dev/null || true # Wait for graceful shutdown (up to ~2s) - for i in {1..20}; do + for _ in {1..20}; do if ! kill -0 "$pid" 2>/dev/null; then break fi |
