Skip to content

Commit

Permalink
chore: Add start script
Browse files Browse the repository at this point in the history
  • Loading branch information
fioncat committed Mar 29, 2024
1 parent 366f8ef commit c6a7624
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

BIN_PATH=./target/release/csync
if [[ ! -f $BIN_PATH ]]; then
cargo build --release --locked
fi

while true; do
$BIN_PATH watch
echo ">>>> Csync exited, restart"
sleep 1
done

0 comments on commit c6a7624

Please sign in to comment.