Swap to using getconf instead of integer overflow as it didn't work on Windows
This commit is contained in:
parent
da7667202f
commit
1a303e916f
11
fetch
11
fetch
|
@ -421,13 +421,12 @@ esac
|
||||||
ascii_distro="$distro"
|
ascii_distro="$distro"
|
||||||
|
|
||||||
getdistro () {
|
getdistro () {
|
||||||
# Overflow integer to get architecture
|
# Get architecture
|
||||||
if [ "$os_arch" == "on" ]; then
|
if [ "$os_arch" == "on" ]; then
|
||||||
if ((1<<32)); then
|
case "$(getconf LONG_BIT)" in
|
||||||
distro+=" x86_64"
|
64) distro+=" x86_64" ;;
|
||||||
else
|
32) distro+=" x86" ;;
|
||||||
distro+=" x86"
|
esac
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue