Skip to content

Use temporary directory for AUR helper installation#1305

Open
danielpos178 wants to merge 2 commits into
ChrisTitusTech:mainfrom
danielpos178:fix-aur-installer
Open

Use temporary directory for AUR helper installation#1305
danielpos178 wants to merge 2 commits into
ChrisTitusTech:mainfrom
danielpos178:fix-aur-installer

Conversation

@danielpos178

Copy link
Copy Markdown

Previously, the script cloned the AUR helper into /opt and stayed in that directory for the remainder of the execution. This PR switches to using mktemp, which prevents system pollution and ensures the script maintains its correct working directory.

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Refactoring
  • Security patch
  • UI/UX improvement

Description

Standardizes the installation process for AUR helpers (yay and paru) by using temporary build directories instead of cloning into /opt. This removes the need for manual chown operations and ensures the system remains clean after installation.

Switch from using /opt to a temporary directory for building yay to
improve
security, auto clean-up and prevent permission issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant