build: install latest gosu from published image (#3717)

This commit is contained in:
Geoff Bourne
2025-10-17 19:10:00 -05:00
committed by GitHub
parent 998b61de0d
commit 66f26c0ea8
7 changed files with 2 additions and 39 deletions

View File

@@ -121,17 +121,6 @@ function log() {
eval "$oldState"
}
function getSudoFromDistro(){
distro=$(getDistro)
command=
if [[ $distro == alpine ]]; then
command="su-exec"
else
command="gosu"
fi
echo $command
}
# Refer to https://unix.stackexchange.com/a/10065/102376
function isTerminal() {
if test -t 1; then