Switch to sh and get workaround for sh
This commit is contained in:
parent
f122b19c7a
commit
1503642515
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue