From 7a0aa851a69c3073b437b056afc981c5b824a10e Mon Sep 17 00:00:00 2001 From: Kayou Date: Thu, 26 Nov 2020 11:00:24 +0100 Subject: [PATCH] Keep helpers consistent --- data/helpers.d/utils | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/helpers.d/utils b/data/helpers.d/utils index 75347cc7c..3ab56747e 100644 --- a/data/helpers.d/utils +++ b/data/helpers.d/utils @@ -576,9 +576,10 @@ ynh_app_upstream_version () { # Declare an array to define the options of this helper. local legacy_args=m local -A args_array=( [m]=manifest= ) - local manifest="" + local manifest # Manage arguments with getopts ynh_handle_getopts_args "$@" + manifest="${manifest:-}" if [[ "$manifest" != "" ]] && [[ -e "$manifest" ]]; then