apeinstall.sh can run doas

This commit is contained in:
Jōshin 2024-01-06 04:07:34 +00:00
parent c60b150fcf
commit b9b80f0b1b
No known key found for this signature in database

View file

@ -18,8 +18,13 @@ fi
if [ "$(id -u)" -eq 0 ]; then
SUDO=
else
elif command -v sudo >/dev/null 2>&1; then
SUDO=sudo
elif command -v doas >/dev/null 2>&1; then
SUDO=doas
else
echo "need root or sudo" >&2
exit
fi
if command -v install >/dev/null 2>&1; then