Skip to content

Conversation

iguanajuice
Copy link

This will make all 11 doas users very happy :)

@thias
Copy link
Owner

thias commented Apr 8, 2024

Why not 😅
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.

@iguanajuice
Copy link
Author

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

Liassica added a commit to Liassica/glim-flake that referenced this pull request Aug 18, 2024
Liassica added a commit to Liassica/glim-flake that referenced this pull request Aug 18, 2024
Liassica added a commit to Liassica/glim-flake that referenced this pull request Aug 18, 2024
Liassica added a commit to Liassica/glim-flake that referenced this pull request Aug 18, 2024
Liassica added a commit to Liassica/glim-flake that referenced this pull request Aug 18, 2024
Liassica added a commit to Liassica/glim-flake that referenced this pull request Aug 18, 2024
Liassica added a commit to Liassica/glim-flake that referenced this pull request Aug 18, 2024
Liassica added a commit to Liassica/glim-flake that referenced this pull request Aug 18, 2024
Liassica added a commit to Liassica/glim-flake that referenced this pull request Aug 18, 2024
Liassica added a commit to Liassica/glim-flake that referenced this pull request Aug 18, 2024
Liassica added a commit to Liassica/glim-flake that referenced this pull request Aug 18, 2024
@cshandley-uk
Copy link

The first "if" statement is broken. Please see my commit here for working code (which I also cleaned-up a bit to my own taste):
cshandley-uk@9aa529b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants