Installer: Fix rare misidentification of OS

caused by matching on hostname, e.g. Linux on a Mac
This commit is contained in:
zzz
2023-12-08 06:11:12 -05:00
parent 61fa0e5d8b
commit 143980bc3a

View File

@@ -25,7 +25,9 @@
# netbsd = NetBSD
# unknown = OS could not be determined
HOST_OS=`uname -a`
# Don't use uname -a because the hostname might fool us
# uname -o is not POSIX, not supported on osx/BSD
HOST_OS=`uname -s`
if [ "X$HOST_OS" = "X" ]; then
echo unknown