From 6235c07d332617a3a3bc1687dd6a494beabe3592 Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Sun, 19 Jun 2022 21:18:19 +0800 Subject: [PATCH] Update port.sh --- port.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/port.sh b/port.sh index 25a2675..12b2912 100644 --- a/port.sh +++ b/port.sh @@ -14,5 +14,5 @@ ALL=$(wget -qO- --header="cookie: $TOKEN" https://tcp$STACK.ping.pe/ajax_getPing AREA=($(echo $ALL | python3 -m json.tool | grep CN_ | cut -d \" -f4)) RESULT=($(echo $ALL | python3 -m json.tool | grep -A 2 CN_ | grep result | sed "s#[\":, ]##g")) -echo -e "地方\tISP\t状态" -for ((i=0;i<${#AREA[@]};i++)); do echo -e "$(eval echo "\$${AREA[i]}")\t$(eval echo "\$${RESULT[i]}")"; done +echo -e "地方\tISP\t\t状态" +for ((i=0;i<${#AREA[@]};i++)); do echo -e "$(eval echo "\$${AREA[i]}")\t\t$(eval echo "\$${RESULT[i]}")"; done