diff options
author | Daniil Baturin <daniil@baturin.org> | 2024-09-25 16:42:08 +0100 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-26 04:56:20 +0000 |
commit | 4cd6e7e4223b6c9a7e77e0df604ccd515db25b6e (patch) | |
tree | 8fa13dc2a79655a267ce1207dde7a3d9f9cc8735 /src/validators/ip-cidr | |
parent | 6450c7d964352503c99347bdf1d6bd5c673b37bd (diff) | |
download | vyos-1x-mergify/bp/sagitta/pr-4099.tar.gz vyos-1x-mergify/bp/sagitta/pr-4099.zip |
validators: T6739: fix ipaddrcheck argument quotingmergify/bp/sagitta/pr-4099
(cherry picked from commit 29e21b1b697924ae5d942229304d827d04957549)
Diffstat (limited to 'src/validators/ip-cidr')
-rwxr-xr-x | src/validators/ip-cidr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validators/ip-cidr b/src/validators/ip-cidr index 60d2ac295..8a01e7ad9 100755 --- a/src/validators/ip-cidr +++ b/src/validators/ip-cidr @@ -1,10 +1,10 @@ #!/bin/sh -ipaddrcheck --is-any-cidr $1 +ipaddrcheck --is-any-cidr "$1" if [ $? -gt 0 ]; then echo "Error: $1 is not a valid IP CIDR" exit 1 fi -exit 0
\ No newline at end of file +exit 0 |