From 5f37e2b291eab8bfa954f6f54a57eda8e357c95e Mon Sep 17 00:00:00 2001 From: Thomas Lotze Date: Tue, 9 Jun 2020 09:30:36 +0200 Subject: [PATCH] =?UTF-8?q?f=C3=BChrende=20Null=20bei=20Ausgabe=20von=20da?= =?UTF-8?q?te=20vermeiden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In weiteren Berechnungen kann sonst versucht werden, 08 oder 09 oktal zu interpretieren. --- invite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invite.sh b/invite.sh index 7426dc7..53c2a14 100755 --- a/invite.sh +++ b/invite.sh @@ -15,7 +15,7 @@ next_thursday_offset=$(( ( ( 7 - $day_of_week ) + 4 ) % 7 )) ## Check if next Thursday is the first of a month -if (( $(date -d "+$next_thursday_offset days" +%d) > 7 )); then +if (( $(date -d "+$next_thursday_offset days" +%_d) > 7 )); then echo "Invitation should be sent at most a week in advance." echo "Exiting without sending an inviation..." exit