From ad507b9d18ed4a4b69902dd59057cce3ab38bb57 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Sun, 2 Apr 2023 01:37:06 -0600 Subject: [PATCH] jitsi-updater.sh: fix check chrome driver version. --- jitsi-updater.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jitsi-updater.sh b/jitsi-updater.sh index 5dd9f83..08b0ec0 100644 --- a/jitsi-updater.sh +++ b/jitsi-updater.sh @@ -66,12 +66,6 @@ read -r -a google_package < <(grep ^Package /var/lib/apt/lists/dl.google.com_*_P else echo "Seems no Google repo installed" fi -if [ -z "$CHDB" ]; then - echo "Seems no chromedriver installed" -else - CHD_VER_LOCAL="$($CHDB -v | awk '{print $2}')" - CHD_VER_2D="$(awk '{printf "%.1f\n", $NF}' <<< "$CHD_VER_LOCAL")" -fi if [ -f "$apt_repo"/nodesource.list ]; then read -r -a nodejs_package < <(grep ^Package /var/lib/apt/lists/deb.nodesource.com_node*_Packages | \ sort -u | awk '{print $2}' | xargs) @@ -114,6 +108,12 @@ update_google_repo() { else echo "No Google repository found" fi + if [ -z "$CHDB" ]; then + echo "Seems no chromedriver installed" + else + CHD_VER_LOCAL="$($CHDB -v | awk '{print $2}')" + CHD_VER_2D="$(awk '{printf "%.1f\n", $NF}' <<< "$CHD_VER_LOCAL")" + fi } update_nodejs_repo() { apt-get update -o Dir::Etc::sourcelist="sources.list.d/nodesource.list" \