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
The following line in
create-arch-bootstrap.shwould cause an infinite loop error while executing:It'd better be changed to: