From 22a6a545fa40e48cf241a1e6690baccefe58e37c Mon Sep 17 00:00:00 2001 From: fliegerjohn Date: Tue, 22 Aug 2023 20:27:01 +0200 Subject: [PATCH] some improvements --- checkconnection.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkconnection.sh b/checkconnection.sh index d489590..55beb04 100755 --- a/checkconnection.sh +++ b/checkconnection.sh @@ -66,8 +66,8 @@ testwithping() { # # Set $curlbin and $pingbin to "0" when not installed (workaround for sh) -if [[ $curlbin = "" ]]; then curlbin=0; fi -if [[ $pingbin = "" ]]; then pingbin=0; fi +if [[ ! $curlbin ]]; then curlbin=0; fi +if [[ ! $pingbin ]]; then pingbin=0; fi # Check network if [[ -x ${curlbin} ]]; then