FTBFS reminder: Deal with week numbers 01 to 09 correctly
Apparently, date +%W gives week number with leading zero and there is no alternative. Shell math's % cannot deal with that, so we sed the zero out. Signed-off-by: Miro Hrončok <miro@hroncok.cz> Consider my patch Public Domain or CC0.
This commit is contained in:
parent
75881318a7
commit
bd59cac72d
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# A weekly cron job which actually does the items needed.
|
||||
# Only run every third week, see https://pagure.io/releng/issue/8915
|
||||
test $(($(date +%W) % 3)) -eq 0 || exit 0
|
||||
test $(($(date +%W | sed s.^0..) % 3)) -eq 0 || exit 0
|
||||
TMPDIR=`mktemp -d /tmp/ftbfs_reminder.XXXXXX`
|
||||
GITREPO=https://pagure.io/releng.git
|
||||
SCRIPT=ftbfs_weekly_reminder.py
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue