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:
Sebastian Kemper 2022-11-08 22:19:17 +01:00
parent 2be80b04dd
commit e024681271

View file

@ -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