1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-07 17:17:44 +03:00

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

(cherry picked from commit 8b8668b9e71837cb541cd432bc37e4c9405e49cd)
(cherry picked from commit c7762098ec09c2626204c9580c91295414137bba)
(cherry picked from commit b095673440)
(cherry picked from commit d1bc81ba33)
This commit is contained in:
Daan De Meyer 2024-10-11 16:51:04 +02:00 committed by Luca Boccassi
parent 6feda43612
commit 388630c5a9

View File

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