Browse Source

Add pacman database refresh to dotfiles.sh install option

master
Riyyi 4 years ago
parent
commit
5e5a562801
  1. 4
      dotfiles.sh

4
dotfiles.sh

@ -159,14 +159,14 @@ packages() {
if [ "$1" = "install" ]; then if [ "$1" = "install" ]; then
# Install core packages, answer no to pacman questions (honor Ignore) # 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 fi
if [ "$1" = "install-aur" ]; then if [ "$1" = "install-aur" ]; then
# Determine which packages in the list are from the AUR # Determine which packages in the list are from the AUR
AUR_LIST="$(grep -vx "$CORE_LIST" < $PACKAGE_FILE)" AUR_LIST="$(grep -vx "$CORE_LIST" < $PACKAGE_FILE)"
# Install AUR packages # Install AUR packages
"$AUR_HELPER" -S --needed --noconfirm $AUR_LIST "$AUR_HELPER" -Sy --needed --noconfirm $AUR_LIST
fi fi
fi fi
} }

Loading…
Cancel
Save