mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +03:00
91da09bd1a
I missed the fact that it is documented to be a space-separated list.
11 lines
284 B
Bash
11 lines
284 B
Bash
#!/bin/sh -eu
|
|
|
|
test -e /etc/os-release && os_release='/etc/os-release' || os_release='/usr/lib/os-release'
|
|
. "${os_release}"
|
|
|
|
echo "Running on ${PRETTY_NAME:-Linux}"
|
|
|
|
if [ "${ID:-linux}" = "debian" ] || [ "${ID_LIKE#*debian*}" != "${ID_LIKE}" ]; then
|
|
echo "Looks like Debian!"
|
|
fi
|