From fcd9c3bbaa77b48524d1223fd2f228ce14010d45 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 10 Dec 2024 00:13:07 +0700 Subject: [PATCH] Fix term --- src/whitelist/resolve.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/whitelist/resolve.sh b/src/whitelist/resolve.sh index bb6ddb7..0ebb7e3 100644 --- a/src/whitelist/resolve.sh +++ b/src/whitelist/resolve.sh @@ -8,7 +8,7 @@ HOST_ADDRESSES="" for RECORD_TYPE in A AAAA; do while read -r p; do if [[ $p != "#"* ]]; then - if [[ -v TERM ]]; then + if [ -n "$TERM" ]; then printf '\r%s Fetching NS %s of %s' "$(tput el)" $RECORD_TYPE $p fi FFI=$(dig +short $RECORD_TYPE $p @1.1.1.1 | grep -v '\.$')