Made lib executable

master
Keith Irwin 2022-10-03 11:14:37 -06:00
parent dab1508e71
commit 87d96b2cf0
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 4 additions and 6 deletions

10
back/lib/ips_to_peers_rxfr Normal file → Executable file
View File

@ -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