From 7599e37be8cd2de1013d366f5cacce958b2e2ec7 Mon Sep 17 00:00:00 2001 From: Kerem Date: Wed, 16 Jul 2025 16:53:58 +0200 Subject: [PATCH] Backup callable from anywhere --- scripts/backup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/backup.sh b/scripts/backup.sh index 936c76c..0b57813 100755 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -9,7 +9,9 @@ # ============================================================================= # Load CLI parser (must be in same or relative path) -source ./lib/cli/arg_parser.sh +# # Resolve the directory of the current script +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +source "$SCRIPT_DIR/lib/cli/arg_parser.sh" # Flag check utility get_flag() {