Unverified Commit 824f7cb0 authored by Thomas Schüßler's avatar Thomas Schüßler Committed by GitHub

Escape the output of lsb-release.

There can be problematic characters in the output of lsb_release -s -d
e.g.: Debian GNU/Linux 9.8 (stretch)

which later leads to the error:

/etc/update-motd.d/lsb-release: line 1: syntax error near unexpected
token `('

Escaping the output fixed it.
parent 993a304c
......@@ -38,4 +38,4 @@ fi
echo -e " "$DISTRIB_DESCRIPTION "(kernel "$(uname -r)")\n"
# Update the information for next time
printf "DISTRIB_DESCRIPTION=%s" "$(lsb_release -s -d)" > /etc/update-motd.d/lsb-release &
printf "DISTRIB_DESCRIPTION=\"%s\"" "$(lsb_release -s -d)" > /etc/update-motd.d/lsb-release &
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment