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

install.sh: Add the ability to use doas if it is present, instead of sudo #43

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

Conversation

kernaltrap8
Copy link

Some users may not use or even have sudo available to them, and because of this, the install script breaks trying to remove startwayfire or add it, I'm not too sure. But once I had sudo installed, the script worked fine.

@kernaltrap8
Copy link
Author

Sorry for all of the git troubles with both of my PRs, I am still learning git.

Copy link

@wb9688 wb9688 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please don't have those useless commits. You can do git rebase -i HEAD^^^^, remove the lines containing those commits and save, then do git push -f to force push that.

install.sh Outdated
if [[ -z "$(command -v doas)" ]]; then
SUDO=doas
fi

# Usually we use sudo, but if prefix is somewhere in ~/, we don't need sudo
SUDO=sudo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The former won't do anything, because SUDO is set to sudo here anyway.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the changes I made just now should be good.

@kernaltrap8 kernaltrap8 force-pushed the install-sh-patches branch 3 times, most recently from 7581698 to 5a88bde Compare July 21, 2024 20:07
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