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/ipv4-range | |
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/ipv4-range')
-rwxr-xr-x | src/validators/ipv4-range | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validators/ipv4-range b/src/validators/ipv4-range index 6492bfc52..56de64e66 100755 --- a/src/validators/ipv4-range +++ b/src/validators/ipv4-range @@ -18,12 +18,12 @@ if [[ "$1" =~ "-" ]]; then # hyphen as delimiter readarray -d - -t strarr <<< $1 - ipaddrcheck --is-ipv4-single ${strarr[0]} + ipaddrcheck --is-ipv4-single "${strarr[0]}" if [ $? -gt 0 ]; then error_exit $1 fi - ipaddrcheck --is-ipv4-single ${strarr[1]} + ipaddrcheck --is-ipv4-single "${strarr[1]}" if [ $? -gt 0 ]; then error_exit $1 fi |