mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2024-11-01 00:21:46 +01:00
add parenthesis to function syntax
This commit is contained in:
parent
47977b7846
commit
1f5f594e14
1 changed files with 1 additions and 1 deletions
2
run.sh
2
run.sh
|
@ -16,7 +16,7 @@ elif [ -n "${INIT_RESTORE_LATEST}" ]; then
|
|||
find /backup -maxdepth 1 -name '[0-9]*.*.sql.gz' | sort | tail -1 | xargs /restore.sh
|
||||
fi
|
||||
|
||||
function final_backup {
|
||||
function final_backup () {
|
||||
echo "=> Captured trap for final backup"
|
||||
DATE=$(date +%Y%m%d%H%M)
|
||||
echo "=> Requested last backup at $(date "+%Y-%m-%d %H:%M:%S")"
|
||||
|
|
Loading…
Reference in a new issue