fix: fallback to interactive yay if --noconfirm fails (stale build dirs)
This commit is contained in:
@@ -338,9 +338,12 @@ for pkg in "$@"; do
|
|||||||
echo " Building locally..."
|
echo " Building locally..."
|
||||||
if command -v yay &>/dev/null; then
|
if command -v yay &>/dev/null; then
|
||||||
yay -S "$pkg" --noconfirm 2>&1 || {
|
yay -S "$pkg" --noconfirm 2>&1 || {
|
||||||
|
echo " ⚠ Build failed — trying without --noconfirm"
|
||||||
|
yay -S "$pkg" || {
|
||||||
echo " ⚠ Build failed"
|
echo " ⚠ Build failed"
|
||||||
EXIT_CODE=1
|
EXIT_CODE=1
|
||||||
}
|
}
|
||||||
|
}
|
||||||
elif command -v paru &>/dev/null; then
|
elif command -v paru &>/dev/null; then
|
||||||
paru -S "$pkg" --noconfirm 2>&1 || {
|
paru -S "$pkg" --noconfirm 2>&1 || {
|
||||||
echo " ⚠ Build failed"
|
echo " ⚠ Build failed"
|
||||||
|
|||||||
Reference in New Issue
Block a user