From 45bce45f0d893cab5d2c061acd2149639518f5db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20M=C3=B6lle?= Date: Wed, 19 Apr 2023 19:57:16 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Erunupdate=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runupdate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runupdate b/runupdate index 2c609f2..3fb4496 100644 --- a/runupdate +++ b/runupdate @@ -21,7 +21,7 @@ update_server () { ssh $user@$1 "sudo apt-get update > /dev/null && sudo apt-get upgrade -y" > /dev/null 2>&1 if [ $? -eq 0 ]; then echo "Update successful on $1" - else + elif [ -n "$updates" ]; then echo "Update failed on $1" fi }