From 7d8327fa0f377f50bab9d119e5aad673d82b7e13 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 7 Aug 2019 11:43:12 -0500 Subject: [PATCH] Improve script wording --- scripts/bin/check_domain | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/bin/check_domain b/scripts/bin/check_domain index 7db5ecc..15d9b9d 100755 --- a/scripts/bin/check_domain +++ b/scripts/bin/check_domain @@ -6,8 +6,7 @@ AVAIL_REGEX='^No match|^NOT FOUND|^Not fo|AVAILABLE|^No Data Fou|has not been regi|No entri' TIMEOUT_REGEX='^Timeout' -COLOR_RESET="\x1b[0m" -COLOR_GREEN="\x1b[32m" +COLOR_RESET="\x1b[0m" COLOR_GREEN="\x1b[32m" COLOR_YELLOW="\x1b[33m" COLOR_RED="\x1b[31m" @@ -49,7 +48,7 @@ check_domain() { TMP=$(mktemp "check_domain_whois_${DOMAIN}_XXX") whois "$DOMAIN" > "$TMP" 2>&1 if egrep -q "$AVAIL_REGEX" "$TMP"; then - echo -e "$COLOR_GREEN$DOMAIN / available$COLOR_RESET" + echo -e "$COLOR_GREEN$DOMAIN / probably available$COLOR_RESET" elif egrep -q "$TIMEOUT_REGEX" "$TMP"; then echo -e "$COLOR_YELLOW$DOMAIN / timed out$COLOR_RESET" else