From 70c809f222c2fdc9c6ffcf9d2493287c85ea2d32 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Tue, 4 May 2021 19:43:12 -0500 Subject: [PATCH] Improve distro renaming for trisquel --- quick_jibri_installer.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index a526887..182f0e7 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -42,12 +42,16 @@ fi } exit_ifinstalled jitsi-meet -if [ $DIST = flidas ]; then -DIST="xenial" -fi -if [ $DIST = etiona ]; then -DIST="bionic" +rename_distro() { +if [ "$DIST" = "$1" ]; then + DIST="$2" fi +} +#Trisquel distro renaming +rename_distro flidas xenial +rename_distro etiona bionic +rename_distro nabia focal + install_ifnot() { if [ "$(dpkg-query -W -f='${Status}' $1 2>/dev/null | grep -c "ok installed")" == "1" ]; then echo " $1 is installed, skipping..."