From 1d5d6780217dad5105a85e0e21b656f3cfc3afcb Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 2 Jun 2025 13:21:48 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 17f75fb1..b9394b6f 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -678,14 +678,14 @@ install_mongodb() { install_from_gh_release() { local app="$1" local repo="$2" - local mode="$3" # source|binary - local version="$4" # optional - local deb_name="$5" # optional + local mode="${3:-source}" # Default: source + local version="${4:-}" # Default: latest + local deb_name="${5:-}" # Default: empty APP="$app" INSTALL_DIR="/opt/$app" - VERSION="${version:-}" - SOURCE_PACKAGE="${deb_name:-}" + VERSION="$version" + SOURCE_PACKAGE="$deb_name" BUILD_SOURCE=$([[ "$mode" == "binary" ]] && echo 0 || echo 1) fetch_and_deploy_gh_release "$repo"