From 2394ad2a984de44c1284e405d6f99a63898d2ca3 Mon Sep 17 00:00:00 2001 From: Vivek Sundaray Date: Sat, 6 Nov 2021 21:55:19 +0530 Subject: [PATCH] Download and install all the packages simultaneously --- 1-setup.sh | 6 ++---- 2-user.sh | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/1-setup.sh b/1-setup.sh index 4f36ace..f2785fc 100755 --- a/1-setup.sh +++ b/1-setup.sh @@ -201,10 +201,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 881a28d..b1d4563 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/ArchTitus/dotfiles/* $HOME/.config/