diff --git a/helpers/utils b/helpers/utils index 6e4a7ad8c..98e610f21 100644 --- a/helpers/utils +++ b/helpers/utils @@ -554,8 +554,6 @@ ynh_replace_vars() { # Manage arguments with getopts ynh_handle_getopts_args "$@" - set +o xtrace # set +x - # Replace specific YunoHost variables if test -n "${path_url:-}"; then # path_url_slash_less is path_url, or a blank value if path_url is only '/' @@ -586,6 +584,8 @@ ynh_replace_vars() { # List other unique (__ __) variables in $file local uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g")) + set +o xtrace # set +x + # Do the replacement local delimit=@ for one_var in "${uniques_vars[@]}"; do