arithmetic linting fix

This commit is contained in:
Jensa 2023-05-12 17:01:28 +02:00
parent 2b2b409337
commit 5f0b9c75e1

View File

@ -44,14 +44,14 @@ if [ "$1" = 'zammad-backup' ]; then
while true; do
NOW_TIMESTAMP=$(date +%s)
TOMORROW_DATE=$(date -d@"$(( $NOW_TIMESTAMP + 24*60*60 ))" +%Y-%m-%d)
TOMORROW_DATE=$(date -d@"$((NOW_TIMESTAMP + 24*60*60))" +%Y-%m-%d)
zammad_backup
NEXT_TIMESTAMP=$(date -d "$TOMORROW_DATE $BACKUP_TIME" +%s)
NOW_TIMESTAMP=$(date +%s)
sleep $(( $NEXT_TIMESTAMP - $NOW_TIMESTAMP ))
sleep $((NEXT_TIMESTAMP - NOW_TIMESTAMP))
done
fi