From 11700f409f816ae1964013342377eea2417ff19b Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Tue, 23 Nov 2021 13:32:20 -0800 Subject: [PATCH] buildkite: set DEBIAN_FRONTEND=noninteractive --- .buildkite/hooks/pre-command | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index baaf853ca..68bf14ef9 100644 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -1,8 +1,9 @@ # Install packages we need. Docker must be installed and configured, # as should Go itself. We just install some extra bits and pieces. function install_pkgs() { + export DEBIAN_FRONTEND=noninteractive while true; do - if sudo apt-get update && sudo apt-get install -y "$@"; then + if sudo -E apt-get update && sudo -E apt-get install -y "$@"; then break fi done