fix: fallback to interactive yay if --noconfirm fails (stale build dirs)

This commit is contained in:
arch_agent
2026-08-04 11:44:50 +02:00
parent 5cb3591723
commit ee2edbb519
+5 -2
View File
@@ -338,8 +338,11 @@ for pkg in "$@"; do
echo " Building locally..."
if command -v yay &>/dev/null; then
yay -S "$pkg" --noconfirm 2>&1 || {
echo " ⚠ Build failed"
EXIT_CODE=1
echo " ⚠ Build failed — trying without --noconfirm"
yay -S "$pkg" || {
echo " ⚠ Build failed"
EXIT_CODE=1
}
}
elif command -v paru &>/dev/null; then
paru -S "$pkg" --noconfirm 2>&1 || {