From 42965dac42830e4c458c5fc03c11a59190bbcd38 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Thu, 18 Feb 2021 02:32:17 -0600 Subject: [PATCH] Overwrite when unzip directly --- jitsi-updater.sh | 4 ++-- quick_jibri_installer.sh | 2 +- tools/test-jibri-env.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jitsi-updater.sh b/jitsi-updater.sh index a8745d6..94b9b75 100644 --- a/jitsi-updater.sh +++ b/jitsi-updater.sh @@ -93,11 +93,11 @@ if [ ! -z $GOOGL_VER_2D ]; then echo "Upgrading Chromedriver to Google Chromes version" wget -q https://chromedriver.storage.googleapis.com/$CHD_LTST/chromedriver_linux64.zip \ -O /tmp/chromedriver_linux64.zip - unzip /tmp/chromedriver_linux64.zip -d /usr/local/bin/ + unzip -o /tmp/chromedriver_linux64.zip -d /usr/local/bin/ chown root:root $CHDB chmod 0755 $CHDB rm -rf /tpm/chromedriver_linux64.zip - chromedriver -v + printf "Current version: ${Green} $CHD_VER_2D ${Color_Off}\n" else echo "No need to upgrade Chromedriver" printf "Current version: ${Green} $CHD_VER_2D ${Color_Off}\n" diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index cd3cfe9..e088afb 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -381,7 +381,7 @@ else echo "Installing Chromedriver" wget -q https://chromedriver.storage.googleapis.com/$CHD_LTST/chromedriver_linux64.zip \ -O /tmp/chromedriver_linux64.zip - unzip /tmp/chromedriver_linux64.zip -d /usr/local/bin/ + unzip -o /tmp/chromedriver_linux64.zip -d /usr/local/bin/ chown root:root /usr/local/bin/chromedriver chmod 0755 /usr/local/bin/chromedriver rm -rf /tpm/chromedriver_linux64.zip diff --git a/tools/test-jibri-env.sh b/tools/test-jibri-env.sh index 167687f..482bc8c 100644 --- a/tools/test-jibri-env.sh +++ b/tools/test-jibri-env.sh @@ -119,7 +119,7 @@ if [ ! -z "$CHD_VER_LOCAL" ] && [ ! -z "$GOOGL_VER_LOCAL" ]; then echo -e "\nAttempting Chromedriver update!" wget -q https://chromedriver.storage.googleapis.com/$CHD_LTST/chromedriver_linux64.zip \ -O /tmp/chromedriver_linux64.zip - unzip /tmp/chromedriver_linux64.zip -d /usr/local/bin/ + unzip -o /tmp/chromedriver_linux64.zip -d /usr/local/bin/ chown root:root $CHDB chmod 0755 $CHDB rm -rf /tpm/chromedriver_linux64.zip