From 5aca1280fb82618a737153074fb9046841163fe7 Mon Sep 17 00:00:00 2001 From: Rolando Date: Thu, 4 Sep 2025 12:10:35 -0400 Subject: [PATCH] Update sql-import.sh https://github.com/lando/lando/issues/2268 --- scripts/sql-import.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/sql-import.sh b/scripts/sql-import.sh index 2266cb8a5..49838a379 100755 --- a/scripts/sql-import.sh +++ b/scripts/sql-import.sh @@ -48,10 +48,14 @@ while (( "$#" )); do shift ;; *) - if [[ "$1" = /* ]]; then - FILE="${1//\\//}" + if [[ -z "$FILE" ]]; then + if [[ "$1" = /* ]]; then + FILE="${1//\\//}" + else + FILE="$(pwd)/${1//\\//}" + fi else - FILE="$(pwd)/${1//\\//}" + DATABASE="$1" fi shift ;;