mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
e839ebe551
This is not entirely obvious. The logic of how to interpret the fields applies in any language, so drop the pointless mention of C or shell.
11 lines
272 B
Bash
11 lines
272 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" ]; then
|
|
echo "Looks like Debian!"
|
|
fi
|