diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-11-06 19:21:32 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-11-06 19:21:32 +0100 |
commit | 8b535ac2b5cd040e0864f668f39c568cb78bafb7 (patch) | |
tree | e2f0b92851298e9995d6a8eb25084fb5cf33ec41 /src | |
parent | b8a8c8cfeca27f0b188096f7e3dce619588f4447 (diff) | |
download | vyos-1x-8b535ac2b5cd040e0864f668f39c568cb78bafb7.tar.gz vyos-1x-8b535ac2b5cd040e0864f668f39c568cb78bafb7.zip |
validator: ipv4-range: T3050: fix wrong exit code when no range was given
Diffstat (limited to 'src')
-rwxr-xr-x | src/validators/ipv4-range | 4 |
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 |