diff --git a/testssl.sh b/testssl.sh index ae76004..3b11423 100755 --- a/testssl.sh +++ b/testssl.sh @@ -692,7 +692,7 @@ run_http_header() { out " $status_code$msg_thereafter" case $status_code in 301|302|307|308) - redirect = $(grep -a '^Location' $HEADERFILE | sed 's/Location: //' | tr -d '\r\n') + redirect=`$(grep -a '^Location' $HEADERFILE | sed 's/Location: //' | tr -d '\r\n')` out ", redirecting to \"$redirect\"" output_finding "status_code" "$NODEIP" "$PORT" "info" \ "Testing HTTP header response @ \"$URL_PATH\", $status_code$msg_thereafter, redirecting to \"$redirect\""