We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09e0778 commit 5144131Copy full SHA for 5144131
ssr_mujson_clear.sh
@@ -5,7 +5,7 @@ export PATH
5
#=================================================
6
# System Required: CentOS 6+/Debian 7+/Ubuntu 14.04+
7
# Description: ShadowsocksR mujson mode traffic clear script
8
-# Version: 1.0.0
+# Version: 1.0.1
9
# Author: Toyo
10
11
SSR_file="/usr/local/shadowsocksr"
@@ -16,9 +16,9 @@ check_ssr(){
16
}
17
scan_port(){
18
cd "${SSR_file}"
19
- port_all=$(python "mujson_mgr.py" -l|sed "1d")
+ port_all=$(python "mujson_mgr.py" -l)
20
[[ -z ${port_all} ]] && echo -e "${Error} 没有发现任何端口(用户) !" && exit 1
21
- port_num=$(echo -e "${port_all}"|wc -l)
+ port_num=$(echo "${port_all}"|wc -l)
22
[[ ${port_num} = 0 ]] && echo -e "${Error} 没有发现任何端口(用户) !" && exit 1
23
24
clear_traffic(){
0 commit comments