From 7b26b308ad393aae6977073c5d564c6210fb0ca3 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 21 Nov 2016 15:50:05 +0100 Subject: [PATCH] No need for echo and pipe here! --- advanced/Scripts/list.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/list.sh b/advanced/Scripts/list.sh index cfcea424..35f2ceaa 100755 --- a/advanced/Scripts/list.sh +++ b/advanced/Scripts/list.sh @@ -55,7 +55,7 @@ HandleOther(){ domain=$(sed -e "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/" <<< "$1") #check validity of domain - validDomain=$(echo "$domain" | perl -ne'print if /\b((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}\b/') + validDomain=$(perl -ne "print if /\b((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}\b/" <<< "$domain") if [ -z "${validDomain}" ]; then echo "::: $1 is not a valid argument or domain name" else