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.
This commit is contained in:
Lukas Eipert 2022-12-07 11:40:15 +01:00
parent 632bca6084
commit cc548a28af

View file

@ -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