[PR] dylanaraps/neofetch#2015 from jrtc27 - neofetch: Print MACHINE_ARCH not MACHINE for FreeBSD

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2015
Thanks to @jrtc27

Co-authored-by: Jessica Clarke <jrtc27@jrtc27.com>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-07-31 17:03:36 -04:00
commit 029cad082f

View file

@ -1245,8 +1245,8 @@ get_distro() {
[[ $distro ]] || distro="$os (Unknown)"
# Get OS architecture.
case $os in
Solaris|AIX|Haiku|IRIX|FreeMiNT)
case $os-$kernel_name in
Solaris-*|AIX-*|Haiku-*|IRIX-*|FreeMiNT-*|BSD-FreeBSD)
machine_arch=$(uname -p)
;;