From 14a3d47e99a15a0330aa444f7a3cfe946af244e4 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Tue, 29 Sep 2020 21:42:19 -0500 Subject: [PATCH] Check for updates first, then check for kernel --- tools/test-jibri-env.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/test-jibri-env.sh b/tools/test-jibri-env.sh index b3e4cc1..f7a56db 100644 --- a/tools/test-jibri-env.sh +++ b/tools/test-jibri-env.sh @@ -30,14 +30,14 @@ if ! [ $(id -u) = 0 ]; then exit 0 fi -JITSI_REPO=$(apt-cache policy | grep http | grep jitsi | grep stable | awk '{print $3}' | head -n 1 | cut -d "/" -f1) -SND_AL_MODULE=$(lsmod | awk '{print$1}'| grep snd_aloop) -HWE_VIR_MOD=$(apt-cache madison linux-modules-extra-virtual-hwe-$(lsb_release -sr) 2>/dev/null|head -n1|grep -c "extra-virtual-hwe") - echo "Checking for updates...." apt -q2 update apt -yq2 install apt-show-versions +JITSI_REPO=$(apt-cache policy | grep http | grep jitsi | grep stable | awk '{print $3}' | head -n 1 | cut -d "/" -f1) +SND_AL_MODULE=$(lsmod | awk '{print$1}'| grep snd_aloop) +HWE_VIR_MOD=$(apt-cache madison linux-modules-extra-virtual-hwe-$(lsb_release -sr) 2>/dev/null|head -n1|grep -c "extra-virtual-hwe") + echo -e "\n# Check repository\n" if [ -z $JITSI_REPO ]; then echo "No repository detected, wait whaaaat?..."