rtpproxy: use return in init script 790/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Tue, 8 Nov 2022 21:19:17 +0000 (22:19 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Tue, 8 Nov 2022 21:19:29 +0000 (22:19 +0100)
"check_ipaddr()" & "start_service()" are functions, hence "return"
should be used instead of "exit".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/rtpproxy/files/rtpproxy.init

index f71ec6af52593e5b5fb479a2eb7fd34c55d7a244..4c94ba255be0cdcf0a54b78ccf8cd9b8d39b8849 100644 (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