Add script to quickly update NC calendar
This commit is contained in:
parent
b25820e6ee
commit
41a20bd03d
13
scripts/nc-cal-sync/run.sh
Executable file
13
scripts/nc-cal-sync/run.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
if [ -d "venv" ]
|
||||||
|
then
|
||||||
|
source "venv/bin/activate"
|
||||||
|
else
|
||||||
|
echo "No virtualenv found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
python -m calendar_synchronizer -v sync --holidays ../../data/holidays.yaml --schedule ../../data/schedule.yaml "$@"
|
Loading…
x
Reference in New Issue
Block a user