always-online-stun/run.sh

10 lines
197 B
Bash
Raw Normal View History

2021-11-17 23:36:17 +08:00
#!/usr/bin/env bash
2021-11-17 20:51:32 +08:00
cd "$(dirname "$0")"
2021-11-17 21:04:19 +08:00
timestamp=$(date --utc)
2021-11-17 20:51:32 +08:00
git checkout master && \
git pull && \
2022-04-11 00:11:56 +08:00
RUST_LOG=info cargo run && \
2021-11-17 20:51:32 +08:00
git add . && \
git commit -m "Check ${timestamp}" && \
2022-04-11 00:11:56 +08:00
git push