summaryrefslogtreecommitdiff
path: root/archsetup
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-08 15:29:40 -0600
committerCraig Jennings <c@cjennings.net>2025-11-08 15:29:40 -0600
commit25a4e9e0a7cfea5d3dadbe8d55d3e7d80d0d7dc5 (patch)
tree649d1cbad03decc721746871bc7f0449ed7ccc1b /archsetup
parent4278cc3dcdfcd73029f91340390c9d4660862fff (diff)
fix(archsetup): correct invalid sudo syntax in yay installation
Fixed critical bug at line 336 that blocked all AUR package installations. Changed invalid 'sudo -u $username -D $build_dir' to proper 'cd $build_dir && sudo -u $username' pattern. Also updated TODO.org: - Marked yay bug task as DONE - Created "Resolved Tasks" section - Moved completed task to archive with resolution notes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'archsetup')
-rwxr-xr-xarchsetup2
1 files changed, 1 insertions, 1 deletions
diff --git a/archsetup b/archsetup
index 2cbd767..e8762ca 100755
--- a/archsetup
+++ b/archsetup
@@ -333,7 +333,7 @@ aur_installer () {
display "task" "fetching source code for yay"
if ! (sudo -u "$username" git clone --depth 1 "$yay_repo" "$build_dir" >> "$logfile" 2>&1); then
error "error" "cloning source code for yay"
- (sudo -u "$username" -D "$build_dir" git pull --force origin master >> "$logfile" 2>&1) || \
+ (cd "$build_dir" && sudo -u "$username" git pull --force origin master >> "$logfile" 2>&1) || \
error "crash" "changing directories to $build_dir and pulling source code" "$?"
fi