add parenthesis to function syntax

This commit is contained in:
Fco. Javier Delgado del Hoyo 2023-01-19 20:01:21 +01:00
parent 47977b7846
commit 1f5f594e14

2
run.sh
View file

@ -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")"