Files
FishServer/stop_recording.sh

17 lines
580 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# 与 fish_api/uvicorn 的启动、停止无关;仅向已运行的 fish_api 发 HTTP stop适用于曾用 /api/v1/zed/recording/start 或 start_recording.sh --remote 启录的情形)。
# 基址:环境变量 FISH_API_BASE_URL 或 PUBLIC_BASE_URL见 fish_api/.env
# 用法(在仓库根目录):./stop_recording.sh
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT/fish_api"
if command -v uv >/dev/null 2>&1; then
PY=(uv run python)
else
PY=(python3)
fi
exec "${PY[@]}" -m app.zed_record_cli stop "$@"