From dcc493934c0548f76edf4a44db47ee1b04a92121 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sat, 1 Jun 2019 22:47:22 +0200 Subject: [PATCH] Fix ynh_print_OFF when set -x is used in other helpers --- data/helpers.d/logging | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/helpers.d/logging b/data/helpers.d/logging index c46000509..9e8cc06cb 100644 --- a/data/helpers.d/logging +++ b/data/helpers.d/logging @@ -172,7 +172,7 @@ ynh_exec_fully_quiet () { # # Requires YunoHost version 3.2.0 or higher. ynh_print_OFF () { - set +x + exec {BASH_XTRACEFD}>/dev/null } # Restore the logging after ynh_print_OFF @@ -181,7 +181,7 @@ ynh_print_OFF () { # # Requires YunoHost version 3.2.0 or higher. ynh_print_ON () { - set -x + exec {BASH_XTRACEFD}>&1 # Print an echo only for the log, to be able to know that ynh_print_ON has been called. echo ynh_print_ON > /dev/null }