Merge pull request #1083 from YunoHost/kay0u-patch-1

Keep helpers consistent
This commit is contained in:
Alexandre Aubin 2020-11-26 16:15:59 +01:00 committed by GitHub
commit de3a83e37d
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