Files
clawd/tools/box-install-from-tar.sh
2026-03-27 14:02:34 +08:00

8 lines
314 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.
#!/bin/bash
# 在 BOX 上由 sudo 执行:先解压本机 tarball再运行包内 install.sh避免 raw.githubusercontent CDN 滞后;离线机也可不用 curl
set -euo pipefail
rm -rf /opt/clawd
mkdir -p /opt/clawd
tar xzf "${1:-$HOME/clawd-deploy.tgz}" -C /opt/clawd
exec bash /opt/clawd/install.sh