use +short and omit obsolet awk

Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
This commit is contained in:
yubiuser 2021-12-21 22:01:34 +01:00 committed by GitHub
parent e243c562c2
commit db5e94b14a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -597,7 +597,7 @@ gravity_DownloadBlocklistFromUrl() {
blocked=true blocked=true
fi;; fi;;
"NODATA") "NODATA")
if [[ $(dig "${domain}" | grep "NOERROR" -c) -ge 1 ]] && [[ -z $(dig +noall +answer "${domain}" |awk '{print $5}') ]]; then if [[ $(dig "${domain}" | grep "NOERROR" -c) -ge 1 ]] && [[ -z $(dig +short "${domain}") ]]; then
blocked=true blocked=true
fi;; fi;;
"NULL"|*) "NULL"|*)