Use uname to get arch

This commit is contained in:
Dylan 2016-04-05 00:49:21 +10:00
parent f306506c57
commit a8cf5600f8

View file

@ -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
} }