[PR] dylanaraps/neofetch#2191 from pkubaj - Correct architecture detection on *BSD

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2191
Thanks to @pkubaj

Co-authored-by: pkubaj <pkubaj@FreeBSD.org>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-08-30 18:29:25 -04:00
commit 1456660797
No known key found for this signature in database
GPG key ID: E289FAC0DA92DD2B

View file

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