Switch to sh and get workaround for sh

This commit is contained in:
Fliegerjohn 2023-08-22 20:10:28 +02:00
parent f122b19c7a
commit 1503642515

View file

@ -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