Skip to content

Commit dd01156

Browse files
committed
Fix sudo setup for containers with broken lists
1 parent bbc65d9 commit dd01156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
add_sudo() {
33
if ! command -v sudo >/dev/null; then
44
check_package sudo || apt-get update
5-
apt-get install -y sudo
5+
apt-get install -y sudo || (apt-get update && apt-get install -y sudo)
66
fi
77
}
88

0 commit comments

Comments
 (0)