führende Null bei Ausgabe von date vermeiden

In weiteren Berechnungen kann sonst versucht werden, 08 oder 09 oktal zu
interpretieren.
This commit is contained in:
Thomas Lotze 2020-06-09 09:30:36 +02:00
parent 4d659cf871
commit 5f37e2b291

View file

@ -15,7 +15,7 @@ next_thursday_offset=$(( ( ( 7 - $day_of_week ) + 4 ) % 7 ))
## Check if next Thursday is the first of a month ## 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 "Invitation should be sent at most a week in advance."
echo "Exiting without sending an inviation..." echo "Exiting without sending an inviation..."
exit exit