Changed grep invocation to prevent strange grep versions to balk on -E

master
Pepi Zawodsky 2014-02-08 01:14:40 +01:00
parent 26b52d4e17
commit 490c86c43e
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ EOF
)
current_cipher=$(grep "New, " <<<"$tmp"|awk '{print $5}')
current_pfs=$(grep 'Server Temp Key' <<<"$tmp"|awk '{print $4$5$6$7}')
current_protocol=$(grep -E "^\s+Protocol\s+:" <<<"$tmp"|awk '{print $3}')
current_protocol=$(egrep "^\s+Protocol\s+:" <<<"$tmp"|awk '{print $3}')
if [[ -z "$current_protocol" || "$current_cipher" == '(NONE)' ]]; then
# connection failed, try again with next TLS version
continue