From 8b8668b9e71837cb541cd432bc37e4c9405e49cd Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 11 Oct 2024 16:51:04 +0200 Subject: [PATCH] systemd-update-helper: Show executed commands if debug logging is enabled --- src/rpm/systemd-update-helper.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rpm/systemd-update-helper.in b/src/rpm/systemd-update-helper.in index 8af9149352..6467326e35 100755 --- a/src/rpm/systemd-update-helper.in +++ b/src/rpm/systemd-update-helper.in @@ -3,6 +3,10 @@ set -eu set -o pipefail +if [ "${SYSTEMD_LOG_LEVEL:-}" = "debug" ]; then + set -x +fi + command="${1:?}" shift