[fix] Config param should be global

This commit is contained in:
ljf (zamentur) 2021-10-18 00:42:37 +02:00 committed by GitHub
parent eae826b2a6
commit ff69067d9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,7 +193,7 @@ _ynh_app_config_validate() {
if [ -z ${!short_setting+x} ]; then
# Assign the var with the old value in order to allows multiple
# args validation
declare "$short_setting"="${old[$short_setting]}"
declare -g "$short_setting"="${old[$short_setting]}"
continue
fi
if [ ! -z "${file_hash[${short_setting}]}" ]; then