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