From 332a3946d49962d81ac5aa01570f76cb27a87d7e Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Fri, 23 May 2025 18:27:45 +0200 Subject: [PATCH] made deboco's output preserve ansi colors - as a result, it's much easier to spot changes and errors in the output work done when working on [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4069] --- home/bin/deboco | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/bin/deboco b/home/bin/deboco index d9f64ea..dd4988c 100755 --- a/home/bin/deboco +++ b/home/bin/deboco @@ -511,10 +511,10 @@ common_update_machine() # example to apply just the role rsyslog: if [ "$only_role" != '' ] then - debops run "${machine_group}" --limit "${ANS_HOST:-/dev/null}" -t "${only_role}" | tee --append ${report_file_path} + unbuffer debops run "${playbook}" --limit "${ANS_HOST:-/dev/null}" -t "${only_role}" | tee --append ${report_file_path} debops_exit_code=$? else - debops run "${machine_group}" --limit "${ANS_HOST:-/dev/null}" | tee --append ${report_file_path} + unbuffer debops run "${playbook}" --limit "${ANS_HOST:-/dev/null}" | tee --append ${report_file_path} debops_exit_code=$? fi echo "return code for debops run site --limit ${ANS_HOST:-/dev/null} : $debops_exit_code" >> "${report_file_path}"