putzen.sh aktualisiert
This commit is contained in:
parent
902f137671
commit
e05da30fd4
15
putzen.sh
15
putzen.sh
@ -7,26 +7,33 @@ else
|
|||||||
week=$1
|
week=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
current_week=$(date +%V)
|
||||||
|
next_week=$((current_week + 1))
|
||||||
|
if [ "$next_week" -gt 52 ]; then
|
||||||
|
next_week=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
task_title="LeineLab putzen: KW$next_week"
|
||||||
|
|
||||||
case $week in
|
case $week in
|
||||||
0)
|
0)
|
||||||
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
||||||
python create_task.py "LeineLab putzen" 2 "in 7 days" \
|
python create_task.py "$task_title" 2 "in 7 days" \
|
||||||
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-only-weekly"
|
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-only-weekly"
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
||||||
python create_task.py "LeineLab putzen" 4 "in 7 days" \
|
python create_task.py "$task_title" 4 "in 7 days" \
|
||||||
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-fortnightly"
|
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-fortnightly"
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
||||||
python create_task.py "LeineLab putzen" 4 "in 7 days" \
|
python create_task.py "$task_title" 4 "in 7 days" \
|
||||||
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-monthly"
|
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-monthly"
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
/usr/bin/docker exec lab-signal-bot-lab-bot-1 \
|
||||||
python create_task.py "LeineLab putzen" 4 "in 7 days" \
|
python create_task.py "$task_title" 4 "in 7 days" \
|
||||||
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-fortnightly"
|
--pad-template-url "https://pad.leinelab.org/leinelab-putzen-fortnightly"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user