fix: fallback to interactive yay if --noconfirm fails (stale build dirs)
This commit is contained in:
+5
-2
@@ -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 || {
|
||||
|
||||
Reference in New Issue
Block a user