databasus: make fetch_and_deploy_from_url accept empty dir

Pass an explicit empty second argument when downloading MongoDB tools and update fetch_and_deploy_from_url to default the directory parameter to an empty string. This avoids unset/ambiguous directory handling at the call site and ensures the function has a defined directory variable even when none is provided.
This commit is contained in:
CanbiZ (MickLesk)
2026-03-06 14:11:57 +01:00
parent 176fffff0b
commit eb848fd70f
2 changed files with 2 additions and 2 deletions

View File

@@ -7999,7 +7999,7 @@ EOF
# ------------------------------------------------------------------------------
function fetch_and_deploy_from_url() {
local url="$1"
local directory="$2"
local directory="${2:-}"
if [[ -z "$url" ]]; then
msg_error "URL parameter is required"