From cc548a28af82d45d717f135ad1258360153a5251 Mon Sep 17 00:00:00 2001 From: Lukas Eipert Date: Wed, 7 Dec 2022 11:40:15 +0100 Subject: [PATCH] chore: Update apt commands in chrome install script Replace `apt install` with `apt-get install` because the former should not be used for scripting purposes. Otherwise I wasn't able to get it running locally as well. --- scripts/install-chrome | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/install-chrome b/scripts/install-chrome index 597ec19..386cff0 100755 --- a/scripts/install-chrome +++ b/scripts/install-chrome @@ -17,14 +17,16 @@ function download_deb() { } function build_debian() { + apt-get update + echo "Installing browser" BROWSER_DEB="$(download_deb browser)" if [ "${ARCH}" == "arm64" ]; then COMMON_DEB=$(download_deb common) - apt install -y "$PWD/${COMMON_DEB}" "$PWD/${BROWSER_DEB}" + apt-get install -y "./${COMMON_DEB}" "./${BROWSER_DEB}" rm -rf "$COMMON_DEB" else - apt install -y "$PWD/${BROWSER_DEB}" + apt-get install -y "./${BROWSER_DEB}" fi rm -f "$BROWSER_DEB" @@ -38,7 +40,7 @@ function build_debian() { rm -f chromedriver_linux64.zip else DRIVER_DEB=$(download_deb driver) - apt install -y "$PWD/$DRIVER_DEB" + apt-get install -y "./$DRIVER_DEB" rm -f "$DRIVER_DEB" fi