Made lib executable
parent
dab1508e71
commit
87d96b2cf0
|
@ -23,13 +23,11 @@ fi
|
|||
source "${CONFIG_FILE}"
|
||||
format="${1}"
|
||||
|
||||
# Perform AXFR lookup
|
||||
res="$("${LIB_DIR:?}/ns_lookup_rxfr")" || exit 4
|
||||
|
||||
# This should read from stdin
|
||||
while IFS= read -r line; do
|
||||
printf "${line}"
|
||||
if [ "${res}" == "" ]; then
|
||||
# Perform AXFR lookup
|
||||
res="$("${LIB_DIR:?}/ns_lookup_rxfr")" || exit 4
|
||||
fi
|
||||
printf 'Checking line %s.\n' "${line}"
|
||||
res=""printf 'Checking line %s.\n' "${line}"
|
||||
<<<"${res}" grep -B1 " ${line}" >>"${LOGFILE}"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue