Use doas instead of sudo by default in abuild-keygen?
Right now the SUDO variable need to be set like so: SUDO=doas abuild-keygen -a -i
to get abuild-keygen to work if you only have doas installed.
Doas seems to be the recommended option everywhere else in Alpine, so making it the default might be a usability improvement?
I missed the option of using the SUDO variable and it caused some confusion. My first thought was that I needed to install sudo.
Although the option of using the SUDO variable is documented at the bottom of abuild-keygen -h
, I only found out about it when I looked through the abuild-keygen script.
If we don't want to make doas the default, another option could be to notify users about using the SUDO variable (like setting it to SUDO=doas) in the error message under the line "/usr/bin/abuild-keygen: line 63: sudo: not found".