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 () {
|
getdistro () {
|
||||||
# Get architecture
|
# Get architecture
|
||||||
if [ "$os_arch" == "on" ]; then
|
[ "$os_arch" == "on" ] && \
|
||||||
case "$(getconf LONG_BIT)" in
|
distro+=" $(uname -m)"
|
||||||
64) distro+=" 64-bit" ;;
|
|
||||||
32) distro+=" 32-bit" ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue