1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00

Linux: Quit out of install script early if an ARM or 32 bit system is detected (#2881)

* Quit out of install script early if an arm system is detected

* improved error message
This commit is contained in:
Caleb John 2020-03-24 11:08:07 -06:00 committed by GitHub
parent 9524eb7e37
commit 6f08e1e4ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,22 @@ print " |_|"
print "" print ""
print "Linux Installer and Updater" print "Linux Installer and Updater"
# Architecture check
if ! [[ -x "$(command -v uname)" ]] ; then
print "Can't get system architecture, skipping check"
else
## this actually gives more information than needed, but it contains all architectures (hardware and software)
ARCHITECTURE=$(uname -a)
if [[ $ARCHITECTURE =~ .*aarch.*|.*arm.* ]] ; then
echo "${COLOR_RED}Arm systems are not officially supported by Joplin,${COLOR_RESET} please search the forum (https://discourse.joplinapp.org/) for more information"
exit 1
elif [[ $ARCHITECTURE =~ .*i.86.* ]] ; then
echo "${COLOR_RED}32-bit systems are not supported by Joplin,${COLOR_RESET} please search the forum (https://discourse.joplinapp.org/) for more information"
exit 1
fi
fi
#----------------------------------------------------- #-----------------------------------------------------
# Download Joplin # Download Joplin
#----------------------------------------------------- #-----------------------------------------------------