Files
Nexus/scripts/with-proxy.sh
T
Nexus Deploy a2ae74d582 release: BUG fixes batch 1-6, full bug scan docs, Ubuntu/Linux dev
- Backend: auth refresh reuse, schedule/retry/sync/agent/files fixes
- Frontend: push WS, files ETag browse, vite build assets
- Docs: audit/changelog, production deploy gate, bug scan registry B7-77
- Deploy: deploy-production.sh, prune assets, gate logs
2026-06-04 14:01:14 +08:00

10 lines
386 B
Bash

#!/usr/bin/env bash
# 在 SOCKS5 代理下执行命令(Docker 拉镜像、npm 等)
# 用法: scripts/with-proxy.sh docker compose pull
# scripts/with-proxy.sh npm ci # 在 frontend 目录执行时先 cd frontend
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CONF="${SCRIPT_DIR}/proxychains-docker.conf"
exec proxychains4 -q -f "${CONF}" "$@"