Shell script that sets up crontab environment
This commit is contained in:
parent
5294854e1c
commit
427d534d5e
1 changed files with 12 additions and 0 deletions
12
nightly-sync
Executable file
12
nightly-sync
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
# Step One ... get the latest changes...
|
||||
git pull origin main > .latest-gitrun.txt 2>&1
|
||||
|
||||
# Step Two ... start the virtual environment...
|
||||
source .venv/bin/activate
|
||||
|
||||
# Step Three ... run the script:
|
||||
python ./habitica_sync.py > .latest-run.txt 2>&1
|
||||
Loading…
Reference in a new issue