17 lines
395 B
Bash
Executable File
17 lines
395 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
CONFIG="$HOME/.config/zed-bridge/config.json"
|
|
if [[ ! -f "$CONFIG" ]]; then
|
|
echo "No config found at $CONFIG"
|
|
echo "Copy config.example.json there and edit it:"
|
|
echo " mkdir -p ~/.config/zed-bridge"
|
|
echo " cp config.example.json $CONFIG"
|
|
exit 1
|
|
fi
|
|
|
|
cargo build --release --quiet
|
|
exec ./target/release/zed-bridge
|