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
1 changed files with 1 additions and 1 deletions

View File

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