Skip to content

Commit

Permalink
Update chromedriver.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
raczeja authored Nov 28, 2024
1 parent 900efa5 commit 534cecd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chromedriver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 534cecd

Please sign in to comment.