]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemd-update-helper: Show executed commands if debug logging is enabled
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 11 Oct 2024 14:51:04 +0000 (16:51 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 11 Oct 2024 18:30:04 +0000 (19:30 +0100)
src/rpm/systemd-update-helper.in

index 8af914935261ac669f3e0a746ab55e455d11e3f9..6467326e359ce969a0b999bfc11b55e59e8b1adc 100755 (executable)
@@ -3,6 +3,10 @@
 set -eu
 set -o pipefail
 
+if [ "${SYSTEMD_LOG_LEVEL:-}" = "debug" ]; then
+    set -x
+fi
+
 command="${1:?}"
 shift