Use uname to get arch
This commit is contained in:
parent
f306506c57
commit
a8cf5600f8
1 changed files with 2 additions and 6 deletions
8
neofetch
8
neofetch
|
@ -513,12 +513,8 @@ ascii_distro="$distro"
|
|||
|
||||
getdistro () {
|
||||
# Get architecture
|
||||
if [ "$os_arch" == "on" ]; then
|
||||
case "$(getconf LONG_BIT)" in
|
||||
64) distro+=" 64-bit" ;;
|
||||
32) distro+=" 32-bit" ;;
|
||||
esac
|
||||
fi
|
||||
[ "$os_arch" == "on" ] && \
|
||||
distro+=" $(uname -m)"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue