Merge pull request #2690 from pixelherodev/dev

Add support for `doas`
pull/2830/head
Kris Gesling 2021-02-05 14:46:29 +09:30 committed by GitHub
commit bfd6be347f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ function found_exe() {
if found_exe sudo ; then
SUDO=sudo
elif found_exe doas ; then
SUDO=doas
elif [[ $opt_allowroot != true ]]; then
echo 'This script requires "sudo" to install system packages. Please install it, then re-run this script.'
exit 1