From e3a378ac8f520c729813187504a348af7666d978 Mon Sep 17 00:00:00 2001 From: SteveTinkers <79803804+SteveTinkers@users.noreply.github.com> Date: Thu, 18 Nov 2021 20:06:28 -0500 Subject: [PATCH] Update makeconf.sh --- makeconf.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/makeconf.sh b/makeconf.sh index a2c3d27..f0e2afc 100755 --- a/makeconf.sh +++ b/makeconf.sh @@ -130,7 +130,11 @@ echo "" >> $configFileName # echo "INSTALLING AUR DEFAULT PACKAGE: ${PKG}" # yay -S --noconfirm $PKG # echo "${PKG}" - echo "${PKG}" >> $configFileName + if [ "${PKG}" == "PKGS_AUR_DEFAULT=(" ]; then + echo "PKGS_AUR=(" + else + echo "${PKG}" >> $configFileName + fi done #else # echo "installing AUR user specified packages" @@ -155,7 +159,11 @@ echo "" >> $configFileName for PKG in "${PKGS_ARCH_DEFAULT[@]}"; do # echo "INSTALLING ARCH DEFAULT PACKAGE: ${PKG}" # pacman -S "$PKG" --noconfirm --needed - echo "${PKG}" >> $configFileName + if [ "${PKG}" == "PKGS_ARCH_DEFAULT=(" ]; then + echo "PKGS_ARCH=(" + else + echo "${PKG}" >> $configFileName + fi done #else # echo "installing arch user specified packages"