Add pacman database refresh to dotfiles.sh install option
This commit is contained in:
+2
-2
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user