Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doas support. #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add doas support. #123

wants to merge 1 commit into from

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
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.

2 participants