rtpproxy: use return in init script
"check_ipaddr()" & "start_service()" are functions, hence "return" should be used instead of "exit". Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
2be80b04dd
commit
e024681271
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue