From 5144131aa2f8cafb39b566a3c100ce4d761dcc63 Mon Sep 17 00:00:00 2001 From: Toyo Date: Wed, 9 Aug 2017 18:15:58 +0800 Subject: [PATCH] Add files via upload --- ssr_mujson_clear.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssr_mujson_clear.sh b/ssr_mujson_clear.sh index 91069938..9ddf8461 100644 --- a/ssr_mujson_clear.sh +++ b/ssr_mujson_clear.sh @@ -5,7 +5,7 @@ export PATH #================================================= # System Required: CentOS 6+/Debian 7+/Ubuntu 14.04+ # Description: ShadowsocksR mujson mode traffic clear script -# Version: 1.0.0 +# Version: 1.0.1 # Author: Toyo #================================================= SSR_file="/usr/local/shadowsocksr" @@ -16,9 +16,9 @@ check_ssr(){ } scan_port(){ cd "${SSR_file}" - port_all=$(python "mujson_mgr.py" -l|sed "1d") + port_all=$(python "mujson_mgr.py" -l) [[ -z ${port_all} ]] && echo -e "${Error} 没有发现任何端口(用户) !" && exit 1 - port_num=$(echo -e "${port_all}"|wc -l) + port_num=$(echo "${port_all}"|wc -l) [[ ${port_num} = 0 ]] && echo -e "${Error} 没有发现任何端口(用户) !" && exit 1 } clear_traffic(){