Run pacman twice

Sometimes some packages fail to install due to, for instance, mirror issues or due to unstable connection. Running pacman twice increses the chance of successful installation in such cases.
This commit is contained in:
Kron4ek 2023-04-06 19:19:07 +05:00 committed by GitHub
parent feaefe2014
commit 89682b085c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,7 +247,7 @@ if [ -n "\${bad_pkglist}" ]; then
echo \${bad_pkglist} > /opt/bad_pkglist.txt
fi
pacman --noconfirm --needed -S \${good_pkglist}
pacman --noconfirm --needed -S \${good_pkglist} || pacman --noconfirm --needed -S \${good_pkglist}
EOF
chmod +x "${bootstrap}"/opt/install_packages.sh