Skip to content

Use temporary directory for AUR helper installation#1305

Merged
ChrisTitusTech merged 3 commits into
ChrisTitusTech:mainfrom
danielpos178:fix-aur-installer
Jun 24, 2026
Merged

Use temporary directory for AUR helper installation#1305
ChrisTitusTech merged 3 commits into
ChrisTitusTech:mainfrom
danielpos178:fix-aur-installer

Conversation

@danielpos178

Copy link
Copy Markdown
Contributor

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.

danielpos178 and others added 3 commits June 23, 2026 20:15
Switch from using /opt to a temporary directory for building yay to
improve
security, auto clean-up and prevent permission issues.

@ChrisTitusTech ChrisTitusTech left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Rebased and tightened the temporary AUR build flow so cleanup runs on failure and the caller working directory is preserved. linutil_core tests, shell syntax, ShellCheck, and diff checks pass locally.

@ChrisTitusTech ChrisTitusTech merged commit 28ab9a8 into ChrisTitusTech:main Jun 24, 2026
7 checks passed
@danielpos178 danielpos178 deleted the fix-aur-installer branch June 24, 2026 13:31
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.

2 participants