mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
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:
parent
632bca6084
commit
cc548a28af
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue