diff --git a/1-setup.sh b/1-setup.sh index 0bd7a16..de90709 100755 --- a/1-setup.sh +++ b/1-setup.sh @@ -202,10 +202,8 @@ PKGS=( 'zsh-autosuggestions' ) -for PKG in "${PKGS[@]}"; do - echo "INSTALLING: ${PKG}" - sudo pacman -S "$PKG" --noconfirm --needed -done +installpkg="sudo pacman -S $(printf "%s " "${PKGS[@]}") --noconfirm --needed" +$installpkg # # determine processor type and install microcode diff --git a/2-user.sh b/2-user.sh index a7ba29b..6161d76 100755 --- a/2-user.sh +++ b/2-user.sh @@ -51,9 +51,8 @@ PKGS=( 'snap-pac' ) -for PKG in "${PKGS[@]}"; do - yay -S --noconfirm $PKG -done +installpkg="yay -S $(printf "%s " "${PKGS[@]}") --noconfirm --needed" +$installpkg export PATH=$PATH:~/.local/bin cp -r $HOME/$SCRIPTHOME/dotfiles/* $HOME/.config/