summaryrefslogtreecommitdiffstats
path: root/man/check-os-release.sh
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-22 20:29:03 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-22 20:44:04 +0200
commit91da09bd1ac49fb0ffa9399d1dc24ef676fd2177 (patch)
tree7be91f063538e3ae8e956742c9670b387fdfbc03 /man/check-os-release.sh
parentman/check-os-release.py: ignore comment and empty lines (diff)
downloadsystemd-91da09bd1ac49fb0ffa9399d1dc24ef676fd2177.tar.xz
systemd-91da09bd1ac49fb0ffa9399d1dc24ef676fd2177.zip
man/check-os-release.*: allow ID_LIKE to have multiple values
I missed the fact that it is documented to be a space-separated list.
Diffstat (limited to 'man/check-os-release.sh')
-rw-r--r--man/check-os-release.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/man/check-os-release.sh b/man/check-os-release.sh
index 2a1a057928..d00c0f9268 100644
--- a/man/check-os-release.sh
+++ b/man/check-os-release.sh
@@ -5,6 +5,6 @@ test -e /etc/os-release && os_release='/etc/os-release' || os_release='/usr/lib/
echo "Running on ${PRETTY_NAME:-Linux}"
-if [ "${ID:-linux}" = "debian" ] || [ "${ID_LIKE:-}" = "debian" ]; then
+if [ "${ID:-linux}" = "debian" ] || [ "${ID_LIKE#*debian*}" != "${ID_LIKE}" ]; then
echo "Looks like Debian!"
fi