From 5e5a5628019b6eebff211b14a0053dbad43dee25 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 24 Jul 2020 03:04:18 +0200 Subject: [PATCH] Add pacman database refresh to dotfiles.sh install option --- dotfiles.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles.sh b/dotfiles.sh index 68afd97..330b863 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -159,14 +159,14 @@ packages() { if [ "$1" = "install" ]; then # Install core packages, answer no to pacman questions (honor Ignore) - yes n | sudo pacman -S --needed $CORE_LIST + yes n | sudo pacman -Sy --needed $CORE_LIST fi if [ "$1" = "install-aur" ]; then # Determine which packages in the list are from the AUR AUR_LIST="$(grep -vx "$CORE_LIST" < $PACKAGE_FILE)" # Install AUR packages - "$AUR_HELPER" -S --needed --noconfirm $AUR_LIST + "$AUR_HELPER" -Sy --needed --noconfirm $AUR_LIST fi fi }