mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 07:46:06 +08:00
Linux Mint 18 support. (#2659)
Allows the deb package to be installed on Linux Mint 18.
This commit is contained in:
parent
e40b5781c2
commit
79d879ff79
|
@ -15,7 +15,7 @@
|
||||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||||
# the debian-policy package
|
# the debian-policy package
|
||||||
|
|
||||||
UBUNTU_CODENAMES="precise trusty utopic vivid"
|
UBUNTU_CODENAMES="precise trusty utopic vivid" # "xenial is not yet available in nylas repos."
|
||||||
DEBIAN_CODENAMES="squeeze wheezy jessie sid"
|
DEBIAN_CODENAMES="squeeze wheezy jessie sid"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
@ -24,14 +24,14 @@ case "$1" in
|
||||||
|
|
||||||
DISTRO=`lsb_release -s -i`
|
DISTRO=`lsb_release -s -i`
|
||||||
|
|
||||||
if [ "$DISTRO" = "Ubuntu" ] || [ "$DISTRO" = "elementary OS" ]; then
|
if [ "$DISTRO" = "Ubuntu" ] || [ "$DISTRO" = "elementary OS" ] || [ "$DISTRO" = "LinuxMint" ] ; then
|
||||||
DISTS=$UBUNTU_CODENAMES
|
DISTS=$UBUNTU_CODENAMES
|
||||||
DISTRO="ubuntu"
|
DISTRO="ubuntu"
|
||||||
elif [ "$DISTRO" = "Debian" ]; then
|
elif [ "$DISTRO" = "Debian" ]; then
|
||||||
DISTS=$DEBIAN_CODENAMES
|
DISTS=$DEBIAN_CODENAMES
|
||||||
DISTRO="debian"
|
DISTRO="debian"
|
||||||
else
|
else
|
||||||
echo "You are not running Debian or Ubuntu. Not adding Nylas repository."
|
echo "You are not running Debian, Ubuntu, ElementaryOS or LinuxMint. Not adding Nylas repository."
|
||||||
DISTRO=""
|
DISTRO=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue