Distro [uname]: Remove macOS, add Haiku to use -p

This commit is contained in:
Muhammad Herdiansyah 2017-06-10 12:44:30 +07:00
parent c0fb89ce40
commit 2d1d689dd0

View file

@ -218,7 +218,7 @@ get_distro() {
# Get OS architecture.
if [[ "$os_arch" == "on" ]]; then
case "$os" in
"Solaris" | "AIX" | "BSD" | "macOS") machine_arch="$(uname -p)" ;;
"Solaris" | "AIX" | "BSD" | "Haiku") machine_arch="$(uname -p)" ;;
*) machine_arch="$(uname -m)" ;;
esac