chore: shell functions: detect OS without requiring uname

pull/572/head
Stéphane Lesimple 9 months ago committed by Stéphane Lesimple
parent 93671ef571
commit 8184991f7b

@ -9,7 +9,11 @@
# shellcheck disable=SC2034
AK_FILE=".ssh/authorized_keys2"
OS_FAMILY=$(uname -s)
if [ -e /bin/freebsd-version ]; then
OS_FAMILY=FreeBSD
else
OS_FAMILY=Linux
fi
LINUX_DISTRO=unknown
DISTRO_VERSION=''
DISTRO_LIKE=''

Loading…
Cancel
Save