add run.sh
This commit is contained in:
parent
9a502d86fe
commit
b1f4f08b54
16
run.sh
Executable file
16
run.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
DIR="$(dirname "$(realpath "$0")")"
|
||||||
|
cd "$DIR"
|
||||||
|
|
||||||
|
install=0
|
||||||
|
[ -d .venv ] || install=1
|
||||||
|
|
||||||
|
if [ $install -eq 1 ]; then python3 -m venv .venv; fi
|
||||||
|
./.venv/bin/activate
|
||||||
|
if [ $install -eq 1 ]; then pip install -r requirements.txt; fi
|
||||||
|
|
||||||
|
./tgschedpub.py "$@"
|
Loading…
x
Reference in New Issue
Block a user