1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-12 08:58:20 +03:00

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

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

View File

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