diff --git a/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh b/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh index ececd05ace..a1531a95d0 100755 --- a/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh +++ b/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh @@ -32,6 +32,12 @@ if ! command -v curl >/dev/null; then apt-get install -y curl fi +# GnuPG is not preinstalled in slim images +if ! command -v gpg >/dev/null; then + apt-get update + apt-get install -y gpg +fi + # 3. Add the GPG key, the apt repo, update the apt cache, and install the package curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpg install -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/ diff --git a/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh b/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh index 6ab84c3100..7fde34e5b8 100755 --- a/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh +++ b/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh @@ -32,6 +32,12 @@ if ! command -v curl >/dev/null; then apt-get install -y curl fi +# GnuPG is not preinstalled in slim images +if ! command -v gpg >/dev/null; then + apt-get update + apt-get install -y gpg +fi + # 3. Add the GPG key, the apt repo, update the apt cache, and install the package curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpg install -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/ diff --git a/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh b/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh index e66f85bbba..4acb1dbf1b 100755 --- a/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh +++ b/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh @@ -32,6 +32,12 @@ if ! command -v curl >/dev/null; then apt-get install -y curl fi +# GnuPG is not preinstalled in slim images +if ! command -v gpg >/dev/null; then + apt-get update + apt-get install -y gpg +fi + # 3. Add the GPG key, the apt repo, update the apt cache, and install the package curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpg install -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/