Add doas support in script/linux (#8788)

Release Notes:
- n/a
This commit is contained in:
feelamee 2024-03-03 21:44:39 +00:00 committed by GitHub
parent 49f378ead3
commit 1442fcb497
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/bash -e
# if sudo is not installed, define an empty alias
maysudo=$(command -v sudo || true)
maysudo=$(command -v sudo || command -v doas || true)
# Ubuntu, Debian, etc.
# https://packages.ubuntu.com/