Files
RedisClipSync/linux/run.sh

17 lines
457 B
Bash
Raw Permalink 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
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"