Skip to content

Infinite error “Enter a number (default=1): ==> -> invalid number: y “ #238

@exaos

Description

@exaos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions