From 900efa577f19073dc4caa3a51ef085ec6f036f60 Mon Sep 17 00:00:00 2001 From: Jakub Raczek Date: Thu, 28 Nov 2024 13:16:18 +0100 Subject: [PATCH] Update chromedriver.sh --- chromedriver.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chromedriver.sh b/chromedriver.sh index 1ca7d195..eb53592a 100644 --- a/chromedriver.sh +++ b/chromedriver.sh @@ -8,6 +8,13 @@ # This is a symlink; version-suffixed binaries live alongside it. destlink=${HOME}/local/bin/chromedriver +# Install jq if not installed +if ! command -v jq &> /dev/null; then + echo "jq not found, installing..." + sudo apt-get update + sudo apt-get install -y jq +fi + # The destination can be overridden via the command line. if [ $# -ge 1 ]; then if [ "$1" = '-h' ]; then