mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 09:50:28 +00:00
apeuninstall.sh doas
This commit is contained in:
parent
b9b80f0b1b
commit
bc7602a0df
1 changed files with 6 additions and 1 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