glim icon indicating copy to clipboard operation
glim copied to clipboard

Add `doas` support.

Open iguanajuice opened this issue 1 year ago • 3 comments
trafficstars

This will make all 11 doas users very happy :)

iguanajuice avatar Apr 07 '24 04:04 iguanajuice

Why not :sweat_smile: But could you please update the logic (since not having sudo doesn't guarantee doas will be there) as well as make it more consistent with the other checks? Something like:

# Alias sudo to doas if found
if which doas &>/dev/null; then

Or change to check for both sudo's absence and doas existence if sudo should be preferred if available.

thias avatar Apr 08 '24 17:04 thias

Fixed up the syntax. Also, if neither doas nor sudo is found, use good ol' su -c

iguanajuice avatar Apr 08 '24 22:04 iguanajuice