From e75a67f92b70fb69ddbac36eb44bf1257a8b62f2 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 4 Apr 2016 22:12:45 +1000 Subject: [PATCH] Use uname to get the architecture --- neofetch | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/neofetch b/neofetch index d9ccdd1d..13ae60eb 100755 --- a/neofetch +++ b/neofetch @@ -452,10 +452,6 @@ esac # Distro {{{ -# Default bit style -x64="x86_64" -x32="x86" - case "$os" in "Linux" ) if type -p lsb_release >/dev/null 2>&1; then @@ -510,10 +506,6 @@ case "$os" in distro=${distro//[[:space:]]/ } distro=${distro// } distro=${distro/Microsoft } - - # Change bits to xx-bit for Windows - x64="64-bit" - x32="32-bit" ;; esac distro=${distro//+( )/ } @@ -521,12 +513,8 @@ ascii_distro="$distro" getdistro () { # Get architecture - if [ "$os_arch" == "on" ]; then - case "$(getconf LONG_BIT)" in - 64) distro+=" $x64" ;; - 32) distro+=" $x32" ;; - esac - fi + [ "$os_arch" == "on" ] && \ + distro+=" $(uname -m)" }