2018-02-11 01:20:58 +01:00
|
|
|
# Detect the system architecture to download the right tarball
|
|
|
|
# NOTE: `uname -m` is more accurate and universal than `arch`
|
|
|
|
# See https://en.wikipedia.org/wiki/Uname
|
|
|
|
if [ -n "$(uname -m | grep 64)" ]; then
|
|
|
|
architecture="x86-64"
|
|
|
|
elif [ -n "$(uname -m | grep 86)" ]; then
|
|
|
|
architecture="i386"
|
|
|
|
elif [ -n "$(uname -m | grep arm)" ]; then
|
|
|
|
architecture="arm"
|
|
|
|
else
|
2019-06-11 22:28:26 +02:00
|
|
|
ynh_die --message "Unable to detect your achitecture, please open a bug describing \
|
2018-02-11 01:20:58 +01:00
|
|
|
your hardware and the result of the command \"uname -m\"." 1
|
|
|
|
fi
|