pacman 添加 --noconfirm

This commit is contained in:
bin456789 2023-05-28 00:53:47 +08:00
parent 33264f8cad
commit b909bcc9ae
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -172,7 +172,7 @@ install_pkg() {
dnf install -y $pkgs ||
yum install -y $pkgs ||
zypper install -y $pkgs ||
pacman -Syu $pkgs ||
pacman -Syu --noconfirm $pkgs ||
apk add $pkgs
} 2>/dev/null
break