mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
Use uname to get arch
This commit is contained in:
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user