accounts/scripts/account-sync-mirror.sh
2026-01-24 22:36:29 +08:00

12 lines
290 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/_common.sh"
if [ ! -f "${ACCOUNT_SYNC_CONFIG}" ]; then
echo "❌ 未找到配置文件 ${ACCOUNT_SYNC_CONFIG}"
exit 1
fi
go run ./cmd/syncctl/main.go mirror --config "${ACCOUNT_SYNC_CONFIG}"