From 534cecd52bcce62d54fc674553d9538b277c25cc Mon Sep 17 00:00:00 2001 From: Jakub Raczek Date: Thu, 28 Nov 2024 13:20:38 +0100 Subject: [PATCH] Update chromedriver.sh --- chromedriver.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chromedriver.sh b/chromedriver.sh index eb53592a..a1d135f4 100644 --- a/chromedriver.sh +++ b/chromedriver.sh @@ -67,5 +67,9 @@ unzip -q "${tempdir}/chromedriver.zip" -d "${tempdir}" mkdir -p "$(dirname "${destlink}")" # Move the ChromeDriver to the destination directory -mv "${tempdir}/chromedriver-linux64/chromedriver" "${destlink}.${cver}" +if [ -f "${tempdir}/chromedriver" ]; then + mv "${tempdir}/chromedriver" "${destlink}.${cver}" +else + mv "${tempdir}/chromedriver-linux64/chromedriver" "${destlink}.${cver}" +fi ln -sf "${destlink}.${cver}" "${destlink}"