Skip to content

Commit

Permalink
fix(install-chrome.sh): Chrome install not working on ARM executors (#73
Browse files Browse the repository at this point in the history
)
  • Loading branch information
itsyuvalcohen authored Jul 18, 2023
1 parent 71f0ca3 commit e3202fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/install-chrome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ else
if [[ "$ORB_PARAM_CHROME_VERSION" == "latest" ]]; then
ENV_IS_ARM=$(! dpkg --print-architecture | grep -q arm; echo $?)
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | $SUDO apt-key add -
if [ "$ENV_IS_ARM" == "arm" ]; then
echo "Installing Chrome for ARM64"
$SUDO sh -c 'echo "deb [arch=arm64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
if [ "$ENV_IS_ARM" == "1" ]; then
echo "Google Chrome is not supported on ARM64 architecture."
exit 1
else
echo "Installing Chrome for AMD64"
$SUDO sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
Expand Down

0 comments on commit e3202fe

Please sign in to comment.