瀏覽代碼

[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>
Azalea (on HyDEV-Daisy) 2 年之前
父節點
當前提交
1456660797
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      neofetch

+ 2 - 2
neofetch

@@ -1330,8 +1330,8 @@ get_distro() {
     [[ $distro ]] || distro="$os (Unknown)"
     [[ $distro ]] || distro="$os (Unknown)"
 
 
     # Get OS architecture.
     # 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)
             machine_arch=$(uname -p)
         ;;
         ;;