Get the latest indexes if online

This commit is contained in:
David Heinemeier Hansson 2025-08-19 14:57:11 +02:00
parent cedf20eb36
commit b1a5facd42

View File

@ -39,6 +39,11 @@ show_subtext() {
echo echo
} }
# Update indexes if online
if ping -c5 omarchy.org &>/dev/null; then
yay -Syy
fi
# Install prerequisites # Install prerequisites
source $OMARCHY_INSTALL/preflight/gum.sh source $OMARCHY_INSTALL/preflight/gum.sh
source $OMARCHY_INSTALL/preflight/guard.sh source $OMARCHY_INSTALL/preflight/guard.sh
@ -94,7 +99,7 @@ show_subtext "Updating system packages [5/5]"
sudo updatedb sudo updatedb
# Update system packages if we have a network connection # Update system packages if we have a network connection
if ping -c1 omarchy.org &>/dev/null; then if ping -c5 omarchy.org &>/dev/null; then
yay -Syu --noconfirm --ignore uwsm yay -Syu --noconfirm --ignore uwsm
fi fi