From 40ef2b5943a78e6b90e71c63eadadb6b40a46528 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 10 May 2019 17:19:53 +0200 Subject: [PATCH] Fix packages install in dotfiles.sh --- dotfiles.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dotfiles.sh b/dotfiles.sh index 4621172..0acd58a 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -126,9 +126,11 @@ packages() { fi echo "$PACKAGE_LIST" > "$PACKAGE_FILE" elif [ "$1" = "install" ]; then - # Install core packages - sudo pacman -S --needed --noconfirm "$(cat "$PACKAGE_FILE")" - # For AUR packages, run: -S - < packages + # Grab everything off enabled official repositories that is in the list + CORE_LIST="$(pacman -Ssq | grep -xf $PACKAGE_FILE)" + + # Install core packages, answer no to pacman questions (honor Ignore) + yes n | sudo pacman -S --needed $(echo "$CORE_LIST") fi }