|
|
@ -126,9 +126,11 @@ packages() { |
|
|
|
fi |
|
|
|
fi |
|
|
|
echo "$PACKAGE_LIST" > "$PACKAGE_FILE" |
|
|
|
echo "$PACKAGE_LIST" > "$PACKAGE_FILE" |
|
|
|
elif [ "$1" = "install" ]; then |
|
|
|
elif [ "$1" = "install" ]; then |
|
|
|
# Install core packages |
|
|
|
# Grab everything off enabled official repositories that is in the list |
|
|
|
sudo pacman -S --needed --noconfirm "$(cat "$PACKAGE_FILE")" |
|
|
|
CORE_LIST="$(pacman -Ssq | grep -xf $PACKAGE_FILE)" |
|
|
|
# For AUR packages, run: <helper> -S - < packages |
|
|
|
|
|
|
|
|
|
|
|
# Install core packages, answer no to pacman questions (honor Ignore) |
|
|
|
|
|
|
|
yes n | sudo pacman -S --needed $(echo "$CORE_LIST") |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|