From 37d50f5984125f0d4968c52db171f0ee771e755c Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Thu, 2 May 2024 11:01:36 +0200 Subject: [PATCH] Wait connection to fetch updates --- .config/polybar/scripts/updates-arch-combined.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/polybar/scripts/updates-arch-combined.sh b/.config/polybar/scripts/updates-arch-combined.sh index 69f1cd1..df92b4f 100755 --- a/.config/polybar/scripts/updates-arch-combined.sh +++ b/.config/polybar/scripts/updates-arch-combined.sh @@ -1,5 +1,6 @@ #!/bin/sh # Wait for connection +sleep 5 source $(dirname $0)/../.env connect=$(ping -q -w 1 -c 1 8.8.8.8 &> /dev/null) if [ $? -eq 0 ]; then