diff --git a/main.sh b/main.sh index b03c99af..bc172035 100755 --- a/main.sh +++ b/main.sh @@ -289,7 +289,9 @@ snap_install() { fi } apk_install() { - if type -P doas &>/dev/null; then + if type -P sudo &>/dev/null; then + sudo apk --no-cache add "$@" + elif type -P doas &>/dev/null; then doas apk --no-cache add "$@" else apk --no-cache add "$@"