apeuninstall.sh doas

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

View file

@ -11,8 +11,13 @@ fi
if [ "$UID" = "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
{