Stable branch #2

Merged
Ark74 merged 34 commits from stable-branch into master 2020-04-11 19:22:27 +00:00
1 changed files with 3 additions and 4 deletions
Showing only changes of commit ce9a7f2fef - Show all commits

View File

@ -118,8 +118,7 @@ if ! [ $(id -u) = 0 ]; then
echo "You need to be root or have sudo privileges!"
exit 0
fi
DISTRO_RELEASE=$(lsb_release -sc)
if [ $DISTRO_RELEASE = xenial ] || [ $DISTRO_RELEASE = bionic ]; then
if [ "$DIST" = "xenial" ] || [ "$DIST" = "bionic" ]; then
echo "OS: $(lsb_release -sd)
Good, this is a supported platform!"
else
@ -128,7 +127,7 @@ Sorry, this platform is not supported... exiting"
exit
fi
#Suggest 18.04 LTS release over 16.04
if [ $DIST="xenial" ]; then
if [ "$DIST" = "xenial" ]; then
echo "$(lsb_release -sc), even when it's compatible and functional.
We suggest to use the next (LTS) release, for longer support and security reasons."
read -p "Enter any key to continue..."