mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 02:10:27 +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
|
if [ "$UID" = "0" ]; then
|
||||||
SUDO=
|
SUDO=
|
||||||
else
|
elif command -v sudo >/dev/null 2>&1; then
|
||||||
SUDO=sudo
|
SUDO=sudo
|
||||||
|
elif command -v doas >/dev/null 2>&1; then
|
||||||
|
SUDO=doas
|
||||||
|
else
|
||||||
|
echo "need root or sudo" >&2
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue