Skip to content

Commit

Permalink
Merge pull request #501 from cuvidk/fix-recursive-symlink-and-bad-pkg…
Browse files Browse the repository at this point in the history
…-name-arch

Fix recursive symlink and bad pkg name arch
  • Loading branch information
ChrisTruncer authored Dec 10, 2020
2 parents 3ad89ae + fe51520 commit 548761e
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions Python/setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ case ${osinfo} in
Arch | Manjaro)
pacman -Syu
echo '[*] Installing Arch Dependencies'
pacman -S cmake python3 python-xvfbwrapper python-pip python3-netaddr firefox
for pkg_name in cmake python3 python-xvfbwrapper python-pip python-netaddr firefox; do
pacman -S --noconfirm "${pkg_name}"
done
echo '[*] Upgrading paramiko'
python3 -m pip install --upgrade paramiko
echo
Expand All @@ -281,22 +283,12 @@ case ${osinfo} in
wget ${geckodriver_x86_64}
tar -xvf geckodriver-v0.26.0-linux64.tar.gz
rm geckodriver-v0.26.0-linux64.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
mv geckodriver /usr/bin
else
wget ${geckodriver_x86_32}
tar -xvf geckodriver-v0.26.0-linux32.tar.gz
rm geckodriver-v0.26.0-linux32.tar.gz
mv geckodriver /usr/sbin
if [ -e /usr/bin/geckodriver ]
then
rm /usr/bin/geckodriver
fi
ln -s /usr/sbin/geckodriver /usr/bin/geckodriver
mv geckodriver /usr/bin
fi
cd ..
;;
Expand Down

0 comments on commit 548761e

Please sign in to comment.