From 8b535ac2b5cd040e0864f668f39c568cb78bafb7 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 6 Nov 2020 19:21:32 +0100 Subject: validator: ipv4-range: T3050: fix wrong exit code when no range was given --- src/validators/ipv4-range | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/validators/ipv4-range') diff --git a/src/validators/ipv4-range b/src/validators/ipv4-range index ae3f3f163..cc59039f1 100755 --- a/src/validators/ipv4-range +++ b/src/validators/ipv4-range @@ -28,6 +28,8 @@ if [[ "$1" =~ "-" ]]; then if [ $start -ge $stop ]; then exit 1 fi + + exit 0 fi -exit 0 +exit 1 -- cgit v1.2.3