From 1ec5df32b2c0c2bee5581aacc0ade12d5239d589 Mon Sep 17 00:00:00 2001 From: TuskCode Date: Thu, 20 Feb 2025 13:13:06 +0100 Subject: [PATCH] feat(db_bash_backup/db.sh): use absolute path for sourcing config.sh --- db_bash_backup-main/db.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db_bash_backup-main/db.sh b/db_bash_backup-main/db.sh index 040fa43..c7817ca 100644 --- a/db_bash_backup-main/db.sh +++ b/db_bash_backup-main/db.sh @@ -1,7 +1,9 @@ #!/bin/bash +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + # Import the configuration file -source config.sh +source "$SCRIPT_DIR/config.sh" # Cycle through all the databases and back up each one for db_name in "${databases[@]}"; do