Fix condition
This commit is contained in:
parent
5097fef19b
commit
ce9a7f2fef
|
@ -118,17 +118,16 @@ if ! [ $(id -u) = 0 ]; then
|
||||||
echo "You need to be root or have sudo privileges!"
|
echo "You need to be root or have sudo privileges!"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
DISTRO_RELEASE=$(lsb_release -sc)
|
if [ "$DIST" = "xenial" ] || [ "$DIST" = "bionic" ]; then
|
||||||
if [ $DISTRO_RELEASE = xenial ] || [ $DISTRO_RELEASE = bionic ]; then
|
|
||||||
echo "OS: $(lsb_release -sd)
|
echo "OS: $(lsb_release -sd)
|
||||||
Good, this is a supported platform!"
|
Good, this is a supported platform!"
|
||||||
else
|
else
|
||||||
echo "OS: $(lsb_release -sd)
|
echo "OS: $(lsb_release -sd)
|
||||||
Sorry, this platform is not supported... exiting"
|
Sorry, this platform is not supported... exiting"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
#Suggest 18.04 LTS release over 16.04
|
#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.
|
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."
|
We suggest to use the next (LTS) release, for longer support and security reasons."
|
||||||
read -p "Enter any key to continue..."
|
read -p "Enter any key to continue..."
|
||||||
|
|
Loading…
Reference in New Issue