From 9d8e80f7934c1a50429cd9fb8a4b96b49fb26f92 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 12 Jan 2024 15:42:51 +0100 Subject: [PATCH] Implemented better parameter check --- recover-docker-from-local.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recover-docker-from-local.sh b/recover-docker-from-local.sh index 5a4d3d8..5bcc82b 100644 --- a/recover-docker-from-local.sh +++ b/recover-docker-from-local.sh @@ -24,7 +24,7 @@ backup_sql="/$backup_folder/sql/$database_name.backup.sql" # DATABASE RECOVERY -if [ -f "$backup_sql" ]; then +if [ ! -z "$database_type" ]; then if [ "$database_type" = "postgres" ]; then if [ -n "$database_container" ] && [ -n "$database_password" ] && [ -n "$database_name" ]; then echo "Recover PostgreSQL dump"