Skip to content

Commit

Permalink
Fix sudo setup for containers with broken lists
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jan 21, 2023
1 parent bbc65d9 commit dd01156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit dd01156

Please sign in to comment.