We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d0ea98 commit 26710dfCopy full SHA for 26710df
install.sh
@@ -531,6 +531,8 @@ sh_c() {
531
sudo_sh_c() {
532
if [ "$(id -u)" = 0 ]; then
533
sh_c "$@"
534
+ elif command_exists doas; then
535
+ sh_c "doas $*"
536
elif command_exists sudo; then
537
sh_c "sudo $*"
538
elif command_exists su; then
@@ -539,7 +541,7 @@ sudo_sh_c() {
539
541
echoh
540
542
echoerr "This script needs to run the following command as root."
543
echoerr " $*"
- echoerr "Please install sudo or su."
544
+ echoerr "Please install doas, sudo or su."
545
exit 1
546
fi
547
}
0 commit comments