-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move brain_location to an env variable * Add publishing to crates.io
- Loading branch information
1 parent
0d4b058
commit 9fca166
Showing
2 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/usr/bin/env bash -e | ||
set LOGLEVEL=${LOGLEVEL:="info"} | ||
set TARGET=${TARGET:="-r"} | ||
set BRAIN_LOCATION=${BRAIN_LOCATION:="cndk8-links.md"} | ||
source telegram/.env || (echo "can't rum bot, token not found" && exit 2) | ||
RUST_LOG=$LOGLEVEL cargo run ${TARGET} -p telegram |& tee log/tgrun-$(date +%s).log |