mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 20:40:28 +00:00
apeinstall/uninstall.sh can use doas (#1062)
This commit is contained in:
parent
492a8f4f53
commit
390335eb45
2 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue