From ce9a7f2fef22aa6c98b4b6eb0ffd3ec69e9a6094 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Sat, 11 Apr 2020 06:52:08 -0500 Subject: [PATCH] Fix condition --- quick_jibri_installer.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index 03ad289..cceeb23 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -118,17 +118,16 @@ 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 echo "OS: $(lsb_release -sd) Sorry, this platform is not supported... exiting" -exit + 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..."