Keep helpers consistent

This commit is contained in:
Kayou 2020-11-26 11:00:24 +01:00 committed by GitHub
parent fe6333d2d2
commit 7a0aa851a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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