From: Daan De Meyer Date: Fri, 11 Oct 2024 14:51:04 +0000 (+0200) Subject: systemd-update-helper: Show executed commands if debug logging is enabled X-Git-Tag: v257-rc1~252 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b8668b9e71837cb541cd432bc37e4c9405e49cd;p=thirdparty%2Fsystemd.git systemd-update-helper: Show executed commands if debug logging is enabled --- diff --git a/src/rpm/systemd-update-helper.in b/src/rpm/systemd-update-helper.in index 8af91493526..6467326e359 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