From 74fa6d5b0ce78cbb85ea657d16f8f2c3dba93c6c Mon Sep 17 00:00:00 2001 From: Maksim Usmanov | Maks Date: Tue, 13 Feb 2018 22:54:34 +0100 Subject: [PATCH] Fix default alias This grep -v www.$domain make imposible to add default alias or some order alias if contain www. wwww. hiwww. so if you delete your default alias you cant add it any more. I check this and not know why is excluded, for me there is no reason for that grep --- func/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func/main.sh b/func/main.sh index cec978884..dbd1970de 100644 --- a/func/main.sh +++ b/func/main.sh @@ -906,7 +906,7 @@ format_aliases() { aliases=$(echo "$aliases" |tr -s '.') aliases=$(echo "$aliases" |sed -e "s/[.]*$//g") aliases=$(echo "$aliases" |sed -e "s/^[.]*//") - aliases=$(echo "$aliases" |grep -v www.$domain |sed -e "/^$/d") + aliases=$(echo "$aliases" |sed -e "/^$/d") aliases=$(echo "$aliases" |tr '\n' ',' |sed -e "s/,$//") fi }