summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-06 19:21:32 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-06 19:21:32 +0100
commit8b535ac2b5cd040e0864f668f39c568cb78bafb7 (patch)
treee2f0b92851298e9995d6a8eb25084fb5cf33ec41
parentb8a8c8cfeca27f0b188096f7e3dce619588f4447 (diff)
downloadvyos-1x-8b535ac2b5cd040e0864f668f39c568cb78bafb7.tar.gz
vyos-1x-8b535ac2b5cd040e0864f668f39c568cb78bafb7.zip
validator: ipv4-range: T3050: fix wrong exit code when no range was given
-rwxr-xr-xsrc/validators/ipv4-range4
1 files changed, 3 insertions, 1 deletions
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