systemd-update-helper: Show executed commands if debug logging is enabled

This commit is contained in:
Daan De Meyer
2024-10-11 16:51:04 +02:00
committed by Luca Boccassi
parent c2f3cb2676
commit 8b8668b9e7

View File

@@ -3,6 +3,10 @@
set -eu
set -o pipefail
if [ "${SYSTEMD_LOG_LEVEL:-}" = "debug" ]; then
set -x
fi
command="${1:?}"
shift