shadowsocks-libev: shorten init script by 2 lines

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
Yousong Zhou
2017-08-24 16:57:59 +08:00
parent ec6f7f7f53
commit 8d7c2f2073
2 changed files with 3 additions and 5 deletions

View File

@@ -28,9 +28,7 @@ ss_mkjson_() {
local func
for func in "$@"; do
if ! "$func"; then
return 1
fi
"$func" || return 1
done
}
@@ -184,7 +182,7 @@ ss_rules() {
}
start_service() {
local cfgtype="$1"
local cfgtype
mkdir -p "$ss_confdir"
config_load shadowsocks-libev