From c1dc2be89a43037147238a13ee1df157c26602b4 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Fri, 16 Sep 2016 16:14:56 +0900 Subject: [PATCH] update comment --- l2tp.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/l2tp.sh b/l2tp.sh index 2ee43ea..0b4b901 100644 --- a/l2tp.sh +++ b/l2tp.sh @@ -782,11 +782,11 @@ list_users(){ echo "Error: /etc/ppp/chap-secrets file not found." exit 1 fi - echo -e "+---------------+---------------+" - echo -e "| Username\t| Password\t|" - echo -e "+---------------+---------------+" - grep -v "^#" /etc/ppp/chap-secrets | awk '{print "| "$1"\t| "$3"\t|"}' - echo -e "+---------------+---------------+" + local line="+-------------------------------------------+\n" + local string=%20s + printf "${line}|${string} |${string} |\n${line}" Username Password + grep -v "^#" /etc/ppp/chap-secrets | awk '{printf "|'${string}' |'${string}' |\n", $1,$3}' + printf ${line} } add_user(){