From 9819560518d8733be441d63e02c1fb70d4d79a11 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 14 Jan 2024 18:30:14 +0100 Subject: [PATCH] helpers: disable super verbose logging during ynh_replace_vars poluting logs, it's kinda stable now... --- helpers/utils | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers/utils b/helpers/utils index 13874eea3..6e4a7ad8c 100644 --- a/helpers/utils +++ b/helpers/utils @@ -554,6 +554,8 @@ 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 '/' @@ -604,6 +606,7 @@ ynh_replace_vars() { # Actually replace (sed is used instead of ynh_replace_string to avoid triggering an epic amount of debug logs) sed --in-place "s${delimit}${match_string}${delimit}${replace_string}${delimit}g" "$file" done + set -o xtrace # set -x } # Get a value from heterogeneous file (yaml, json, php, python...)