From 3e635148040c92c86dae8596976483fc089b9c6a Mon Sep 17 00:00:00 2001 From: Noam Preil Date: Fri, 11 Sep 2020 00:44:50 -0400 Subject: [PATCH] Add support for `doas` --- dev_setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev_setup.sh b/dev_setup.sh index de110dc8e9..b15732ad29 100755 --- a/dev_setup.sh +++ b/dev_setup.sh @@ -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