From c02936840b080cfc3ee394a883bce84cd34cd434 Mon Sep 17 00:00:00 2001 From: natemaia Date: Thu, 12 Jan 2023 13:11:32 -0800 Subject: [PATCH] Check for package list being present when installing --- installer | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/installer b/installer index 69e1b77..5e59c7e 100755 --- a/installer +++ b/installer @@ -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 - chrun "pacman -S ${goodinpkg[*]} --needed --noconfirm" 2> "$ERR" 2>&1 - errshow 1 "chrun 'pacman -S ${goodinpkg[*]} --needed --noconfirm'" + + 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