mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 18:00:28 +00:00
apeinstall.sh can run doas
This commit is contained in:
parent
c60b150fcf
commit
b9b80f0b1b
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue