fix loop
This commit is contained in:
parent
b20dac3b2c
commit
c0f2e2e417
@ -197,11 +197,12 @@
|
||||
fi
|
||||
done
|
||||
grep Host /home/docker/traefik/providers/*.yml >>$g_tmp/hosts
|
||||
resultfile="/tmp/ssllabs-scan-result-$$-$host"
|
||||
cat $g_tmp/hosts | cut -d '`' -f2 | sort -u | while read host
|
||||
do
|
||||
resultfile="/tmp/ssllabs-scan-result-$$-$host"
|
||||
host ${host} >/dev/null 2>&1 || continue
|
||||
curl -s https://${host} >/dev/null 2>&1 || continue
|
||||
echo '[]' >$resultfile
|
||||
while cat $resultfile | jq -r | egrep -q '^\[\]$'
|
||||
do
|
||||
until ssllabs-scan --quiet ${host} >$resultfile
|
||||
|
Loading…
Reference in New Issue
Block a user