From b1a5facd427679e017e3254c32f6088d54645d0b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 19 Aug 2025 14:57:11 +0200 Subject: [PATCH] Get the latest indexes if online --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2ae3306c..1e8dd6e1 100755 --- a/install.sh +++ b/install.sh @@ -39,6 +39,11 @@ show_subtext() { echo } +# Update indexes if online +if ping -c5 omarchy.org &>/dev/null; then + yay -Syy +fi + # Install prerequisites source $OMARCHY_INSTALL/preflight/gum.sh source $OMARCHY_INSTALL/preflight/guard.sh @@ -94,7 +99,7 @@ show_subtext "Updating system packages [5/5]" sudo updatedb # 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 fi