Check for package list being present when installing

This commit is contained in:
natemaia 2023-01-12 13:11:32 -08:00
parent 2b9e64b30b
commit c02936840b

View File

@ -6,7 +6,7 @@
# AIF, Calamares, and the Arch Wiki.. Credit where credit is due
# shellcheck disable=2086,2046,2254,2164,2030,2031,2001
VER=2.25
VER=2.26
# default values {
@ -1987,8 +1987,11 @@ install_packages()
sleep 0.5
fi
done
if [[ "${goodinpkg[*]}" ]]; then
chrun "pacman -S ${goodinpkg[*]} --needed --noconfirm" 2> "$ERR" 2>&1
errshow 1 "chrun 'pacman -S ${goodinpkg[*]} --needed --noconfirm'"
fi
# install the ArchLabs packages, if it fails we'll inform the user and try again
if [[ ${alpkg[*]} ]] && ! chrun "pacman -S ${alpkg[*]} --needed --noconfirm" 2> "$ERR" 2>&1; then