chore(script): improve podman installation privilege escalation

This commit is contained in:
zarazaex69
2026-04-13 01:28:00 +03:00
parent 5f1f996994
commit b1111396fd

View File

@@ -19,8 +19,13 @@ if ! command -v podman &> /dev/null; then
if [ "$(id -u)" -eq 0 ]; then
SUDO=""
else
elif command -v sudo &> /dev/null; then
SUDO="sudo"
elif command -v doas &> /dev/null; then
SUDO="doas"
else
echo "[X] No sudo/doas found and not running as root. Cannot install podman."
exit 1
fi
if command -v apt &> /dev/null; then