提交 e0246812 编写于 作者: S Sebastian Kemper

rtpproxy: use return in init script

"check_ipaddr()" & "start_service()" are functions, hence "return"
should be used instead of "exit".
Signed-off-by: NSebastian Kemper <sebastian_ml@gmx.net>
上级 2be80b04
......@@ -48,13 +48,13 @@ check_ipaddr() {
[ -z "$value" ] && {
$LOG_ERR empty $type entry
exit 1
return 1
}
# Bail if more than 1 slash.
[ $(echo "$value" | awk -F "/" '{print NF-1}') -gt 1 ] && {
$LOG_ERR init script does not understand $type entry \""$value"\"
exit 1
return 1
}
IFS="/" read one two << EOF
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册