Skip to content

fix: detect AUR helper in install_bashrc_support instead of hardcoded sudo paru#130

Open
thepinak503 wants to merge 1 commit into
ChrisTitusTech:mainfrom
thepinak503:main
Open

fix: detect AUR helper in install_bashrc_support instead of hardcoded sudo paru#130
thepinak503 wants to merge 1 commit into
ChrisTitusTech:mainfrom
thepinak503:main

Conversation

@thepinak503
Copy link
Copy Markdown

The install_bashrc_support function had a broken Arch Linux case:

  • sudo paru — paru does not take sudo (it handles elevation internally)
  • Missing -S install flag
  • Hardcoded paru instead of detecting the user's AUR helper

Fixed by detecting paru or yay at runtime, then running $AUR_HELPER -S with proper flags.

Copy link
Copy Markdown

@technicks89 technicks89 left a comment

Choose a reason for hiding this comment

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

This is good

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