17 lines
457 B
Bash
17 lines
457 B
Bash
#!/usr/bin/env bash
|
||
set -e
|
||
|
||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
||
cd "$PROJECT_ROOT"
|
||
|
||
CONFIG="${1:-config.properties}"
|
||
|
||
if [[ ! -f code/target/redis-clip-sync.jar ]]; then
|
||
echo "未找到 code/target/redis-clip-sync.jar,请先运行 linux/build-and-run.sh 进行打包。"
|
||
exit 1
|
||
fi
|
||
|
||
echo "启动 Redis 剪切板同步(配置: $CONFIG)..."
|
||
exec java -jar code/target/redis-clip-sync.jar "$CONFIG"
|