mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Preserve environment when running sudo commands in make_apt.sh.
This is so that `DEBIAN_FRONTEND=noninteractive` env var which has been set is in effect while running apt-get commands. PiperOrigin-RevId: 488432544
This commit is contained in:
+2
-2
@@ -33,8 +33,8 @@ shift; shift; shift # For "$@" below.
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
function apt_install() {
|
||||
while true; do
|
||||
sudo apt-get update &&
|
||||
sudo apt-get install -y "$@" &&
|
||||
sudo -E apt-get update &&
|
||||
sudo -E apt-get install -y "$@" &&
|
||||
true
|
||||
result="${?}"
|
||||
case $result in
|
||||
|
||||
Reference in New Issue
Block a user