From e7930bf78ec8df907ecfa506b8db5e462c1c92a3 Mon Sep 17 00:00:00 2001 From: Steve Zabka <79079633+cryinkfly@users.noreply.github.com> Date: Mon, 21 Feb 2022 13:51:38 +0100 Subject: [PATCH] Update update.sh --- files/builds/stable-branch/bin/update.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/files/builds/stable-branch/bin/update.sh b/files/builds/stable-branch/bin/update.sh index 69c3bdf..2b31e19 100644 --- a/files/builds/stable-branch/bin/update.sh +++ b/files/builds/stable-branch/bin/update.sh @@ -99,12 +99,10 @@ function setupact-config-locale { # Check the connection to the server of GitHub. function setupact-check-connection { - ping -c 1 $domain 2>/dev/null 1>/dev/null - echo "$?" - if [ "$?" = 0 ]; then - echo "Connection to the domain worked!" - connection=1 - echo "$connection" + if ping -c 1 $domain &> /dev/null + then + echo "Connection to the domain worked!" + connection=1 else echo "No connection to the domain!" fi