some improvements
This commit is contained in:
parent
1c151d9702
commit
22a6a545fa
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ testwithping() {
|
||||||
#
|
#
|
||||||
|
|
||||||
# Set $curlbin and $pingbin to "0" when not installed (workaround for sh)
|
# Set $curlbin and $pingbin to "0" when not installed (workaround for sh)
|
||||||
if [[ $curlbin = "" ]]; then curlbin=0; fi
|
if [[ ! $curlbin ]]; then curlbin=0; fi
|
||||||
if [[ $pingbin = "" ]]; then pingbin=0; fi
|
if [[ ! $pingbin ]]; then pingbin=0; fi
|
||||||
|
|
||||||
# Check network
|
# Check network
|
||||||
if [[ -x ${curlbin} ]]; then
|
if [[ -x ${curlbin} ]]; then
|
||||||
|
|
Loading…
Reference in a new issue