From dd0115673c4a47a832dff844189234f0e9b3966e Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sat, 21 Jan 2023 08:06:21 +0530 Subject: [PATCH] Fix sudo setup for containers with broken lists --- src/scripts/linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index d22abb2a7..4585fac5a 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -2,7 +2,7 @@ add_sudo() { if ! command -v sudo >/dev/null; then check_package sudo || apt-get update - apt-get install -y sudo + apt-get install -y sudo || (apt-get update && apt-get install -y sudo) fi }