Skip to content

Commit

Permalink
better fix for vicwomg#290 that still upgrades packages.
Browse files Browse the repository at this point in the history
Error condition will output to console, but script will continue to install dependencies.
  • Loading branch information
RecursiveFunctions committed Dec 24, 2023
1 parent 2a3c5d1 commit f8e25ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ if [ $REPLY = "y" ]
if [[ $(cat /etc/os-release | grep -i debian) != "" ]]; then
echo "Client is a Debian-based system. Installing binaries";
echo
echo "*** RUNNING APT-GET UPDATE ***"
sudo apt update --allow-releaseinfo-change || true
if [ $? -ne 0 ]; then echo "ERROR: 'apt-get update' failed with error code: $?"; fi
echo "*** INSTALLING REQUIRED BINARIES ***"
sudo apt install --only-upgrade ffmpeg chromium-browser chromium-chromedriver -y
if [ $? -ne 0 ]; then echo "ERROR: Binary dependency installation failed with error code: $?"; exit 1; fi
Expand Down

0 comments on commit f8e25ce

Please sign in to comment.