From d5ee75453863b3f9a5c02662603a85c7d2f0a6a7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 16 Aug 2025 05:40:10 -0500 Subject: [PATCH] Only do system package updates if there is a network connection This prepares us for offline ISO install --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 7be96126..597c32d3 100755 --- a/install.sh +++ b/install.sh @@ -80,7 +80,11 @@ source $OMARCHY_INSTALL/apps/mimetypes.sh show_logo highlight show_subtext "Updating system packages [5/5]" sudo updatedb -yay -Syu --noconfirm --ignore uwsm + +# Update system packages if we have a network connection +if ping -c1 omarchy.org &>/dev/null; then + yay -Syu --noconfirm --ignore uwsm +fi # Reboot show_logo laseretch 920