Conty
Conty copied to clipboard
Infinite error “Enter a number (default=1): ==> -> invalid number: y “
The following line in create-arch-bootstrap.sh would cause an infinite loop error while executing:
if yes | yay --needed --removemake --builddir /home/aur -a -S ${aur_pkgs}; then
break
fi
It'd better be changed to:
if yay --noconfirm --needed --removemake --builddir /home/aur -a -S ${aur_pkgs}; then
echo "AUR packages installed successfully!"
break # 安装成功,退出循环
else
echo "AUR package installation failed on attempt $i."
# 可以在这里添加一个短暂的暂停,避免连续快速失败
# sleep 10
fi
Unfortunately, --noconfirm is not ideal either since it answers negatively in some cases. I'll try to find a better solution.
https://github.com/Kron4ek/Conty/commit/f54f0cb9de1ec3d88dbae7a6a1b69c74f758ba81