mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Fix sudo setup for containers with broken lists
This commit is contained in:
parent
bbc65d999a
commit
dd0115673c
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user