Skip to content

Commit 73fde88

Browse files
fix: Removing bad logic for checking arm64 in chrome install and disable install of chrome or chrome driver for arm64 (#130)
1 parent 6c639f8 commit 73fde88

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/scripts/install-chrome.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ else
165165
if [[ "$PROCESSED_CHROME_VERSION" == "latest" ]]; then
166166
ENV_IS_ARM=$(! dpkg --print-architecture | grep -q arm; echo $?)
167167
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | $SUDO apt-key add -
168-
if [ "$ENV_IS_ARM" == "arm" ]; then
169-
echo "Installing Chrome for ARM64"
170-
$SUDO sh -c 'echo "deb [arch=arm64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
168+
if [ "$ENV_IS_ARM" = 1 ]; then
169+
echo "No Linux ARM64 support for Chrome"
170+
exit 1
171171
else
172172
echo "Installing Chrome for AMD64"
173173
$SUDO sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

src/scripts/install-chromedriver.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ elif grep Alpine /etc/issue >/dev/null 2>&1; then
2626

2727
exit 0
2828
else
29+
ENV_IS_ARM=$(! dpkg --print-architecture | grep -q arm; echo $?)
30+
if [ "$ENV_IS_ARM" = 1 ]; then
31+
echo "No Linux ARM64 support for Chrome Driver"
32+
exit 1
33+
fi
2934
CHROME_VERSION="$(google-chrome --version)"
3035
PLATFORM=linux64
3136
fi

0 commit comments

Comments
 (0)