Linux Mint 18 support. (#2659)

Allows the deb package to be installed on Linux Mint 18.
This commit is contained in:
Pablo Niklas 2016-07-22 15:25:38 -03:00 committed by Ben Gotow
parent a471e81d41
commit 941708d419

View file

@ -15,7 +15,7 @@
# for details, see http://www.debian.org/doc/debian-policy/ or
# 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"
case "$1" in
@ -24,14 +24,14 @@ case "$1" in
DISTRO=`lsb_release -s -i`
if [ "$DISTRO" = "Ubuntu" ] || [ "$DISTRO" = "elementary OS" ]; then
if [ "$DISTRO" = "Ubuntu" ] || [ "$DISTRO" = "elementary OS" ] || [ "$DISTRO" = "LinuxMint" ] ; then
DISTS=$UBUNTU_CODENAMES
DISTRO="ubuntu"
elif [ "$DISTRO" = "Debian" ]; then
DISTS=$DEBIAN_CODENAMES
DISTRO="debian"
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=""
fi