summaryrefslogtreecommitdiff
path: root/src/validators/ipv4-range
diff options
context:
space:
mode:
Diffstat (limited to 'src/validators/ipv4-range')
-rwxr-xr-xsrc/validators/ipv4-range4
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