From 212b30ee8b1cba0a918328d9a5426b8a6ba783bc Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 20 Jan 2024 14:12:36 +0100 Subject: [PATCH] * MOD: cleanup Signed-off-by: Uwe Hermann --- postgres-backup/app/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/postgres-backup/app/entrypoint.sh b/postgres-backup/app/entrypoint.sh index 9e236ae..c466eb9 100644 --- a/postgres-backup/app/entrypoint.sh +++ b/postgres-backup/app/entrypoint.sh @@ -1,5 +1,6 @@ #!/bin/bash +# shellcheck source=/dev/null . /app/includes.sh # restore @@ -14,7 +15,8 @@ if [[ "$1" == "restore" ]]; then fi function configure_cron() { - local FIND_CRON_COUNT="$(grep -c 'backup.sh' "${CRON_CONFIG_FILE}" 2> /dev/null)" + local FIND_CRON_COUNT + FIND_CRON_COUNT="$(grep -c 'backup.sh' "${CRON_CONFIG_FILE}" 2> /dev/null)" if [[ "${FIND_CRON_COUNT}" -eq 0 ]]; then echo "${CRON} bash /app/backup.sh" >> "${CRON_CONFIG_FILE}" fi