From 427d534d5e4ee856c2195808237f6df1d9f4d145 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Tue, 1 Sep 2026 20:54:42 -0700 Subject: [PATCH] Shell script that sets up crontab environment --- nightly-sync | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 nightly-sync diff --git a/nightly-sync b/nightly-sync new file mode 100755 index 0000000..7bf8da9 --- /dev/null +++ b/nightly-sync @@ -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