putzen.sh: specify week explicitly

This commit is contained in:
lemoer 2024-12-29 03:22:31 +01:00
parent 83802d5232
commit 286588e0fe

View File

@ -1,7 +1,12 @@
#!/bin/sh #!/bin/sh
if [ -z "$1" ]; then
# Week number since 1970 modulo 4 # Week number since 1970 modulo 4
week=$(expr $(date +%s) / 604800 % 4) week=$(expr $(date +%s) / 604800 % 4)
else
week=$1
fi
case $week in case $week in
0) 0)