From 1503642515c9c9836ac7907a2a508a2d61a1291a Mon Sep 17 00:00:00 2001 From: fliegerjohn Date: Tue, 22 Aug 2023 20:10:28 +0200 Subject: [PATCH] Switch to sh and get workaround for sh --- checkconnection.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/checkconnection.sh b/checkconnection.sh index 5eb4a36..64a0e0a 100755 --- a/checkconnection.sh +++ b/checkconnection.sh @@ -65,8 +65,11 @@ testwithping() { ## Main # -# Check for curl and ping and check network +# Set $curlbin and $pingbin to "0" when not installed (workaround for sh) +if [[ $curlbin = "" ]]; then curlbin=0; fi +if [[ $pingbin = "" ]]; then pingbin=0; fi +# Check network if [[ -x ${curlbin} ]]; then testwithcurl