diff --git a/skills/scripts/bootstrap-reverse.sh b/skills/scripts/bootstrap-reverse.sh index 9ec06e4..fae4b01 100644 --- a/skills/scripts/bootstrap-reverse.sh +++ b/skills/scripts/bootstrap-reverse.sh @@ -679,7 +679,14 @@ ensure_anything_analyzer() { if $START_SERVICES; then (cd "$dir" && pnpm install --frozen-lockfile) || return 1 install_git_commit "$repo" "$commit" "$dir" || return 1 - (cd "$dir" && nohup pnpm dev >/tmp/anything-analyzer.log 2>&1 &) + ( + cd "$dir" || exit 1 + if has_cmd nohup; then + nohup pnpm dev >/tmp/anything-analyzer.log 2>&1 & + else + pnpm dev >/tmp/anything-analyzer.log 2>&1 & + fi + ) if wait_for_port 23816 120; then if test_mcp_http 23816; then log_ok "anything-analyzer MCP server ready on port 23816 (HTTP verified)" diff --git a/skills/scripts/test-bootstrap-manifest.sh b/skills/scripts/test-bootstrap-manifest.sh index de98039..7234141 100644 --- a/skills/scripts/test-bootstrap-manifest.sh +++ b/skills/scripts/test-bootstrap-manifest.sh @@ -16,7 +16,7 @@ cat > "$STUB_BIN/command-stub" <<'STUB' #!/usr/bin/env bash name="$(basename "$0")" { printf '%s' "$name"; for arg in "$@"; do printf '|%s' "$arg"; done; printf '\n'; } >> "$CALL_LOG" -if [[ "$name" == sudo ]]; then +if [[ "$name" == sudo || "$name" == nohup ]]; then next="${1:-}"; shift || true exec "$(dirname "$0")/$next" "$@" fi @@ -57,7 +57,7 @@ esac [[ "${STUB_FAIL_COMMAND:-}" != "$name" ]] STUB chmod +x "$STUB_BIN/command-stub" -for name in git node npm npx pipx pnpm sleep nc apt-get sudo; do ln -s command-stub "$STUB_BIN/$name"; done +for name in git node npm npx pipx pnpm sleep nc apt-get sudo nohup; do ln -s command-stub "$STUB_BIN/$name"; done ln -s command-stub "$STUB_BIN/brew" cat > "$STUB_BIN/python3" <