putzen.sh: specify week explicitly
This commit is contained in:
parent
83802d5232
commit
286588e0fe
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user