1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

Fix sleep calculation (#719)

* Fix sleep calculation

* Fix sleep calculation
This commit is contained in:
Mart124
2020-05-04 13:48:16 +02:00
committed by GitHub
parent 9cb103e6aa
commit 330ff7cd80
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
while true
do
# Sleep until next day
[ "$1" = "loop" ] && sleep $((24 * 3600 - (`date +%H` * 3600 + `date +%M` * 60 + `date +%S`)))
[ "$1" = "loop" ] && sleep $((24 * 3600 - (`date +%_H` * 3600 + `date +%_M` * 60 + `date +%_S`)))
# Backup timestamp
export now=$(date +%Y%m%d_%H%M%S)