From 286588e0fe0697c111a3f987459fd49854b553e5 Mon Sep 17 00:00:00 2001 From: lemoer Date: Sun, 29 Dec 2024 03:22:31 +0100 Subject: [PATCH] putzen.sh: specify week explicitly --- putzen.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/putzen.sh b/putzen.sh index a5554b0..55abd35 100644 --- a/putzen.sh +++ b/putzen.sh @@ -1,7 +1,12 @@ #!/bin/sh -# Week number since 1970 modulo 4 -week=$(expr $(date +%s) / 604800 % 4) +if [ -z "$1" ]; then + # Week number since 1970 modulo 4 + week=$(expr $(date +%s) / 604800 % 4) +else + week=$1 +fi + case $week in 0)