summaryrefslogtreecommitdiff
path: root/src/validators/ipv4-host
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2024-09-25 16:42:08 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-09-26 04:56:20 +0000
commit4cd6e7e4223b6c9a7e77e0df604ccd515db25b6e (patch)
tree8fa13dc2a79655a267ce1207dde7a3d9f9cc8735 /src/validators/ipv4-host
parent6450c7d964352503c99347bdf1d6bd5c673b37bd (diff)
downloadvyos-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-host')
-rwxr-xr-xsrc/validators/ipv4-host4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validators/ipv4-host b/src/validators/ipv4-host
index 74b8c36a7..eb8faaa2a 100755
--- a/src/validators/ipv4-host
+++ b/src/validators/ipv4-host
@@ -1,10 +1,10 @@
#!/bin/sh
-ipaddrcheck --is-ipv4-host $1
+ipaddrcheck --is-ipv4-host "$1"
if [ $? -gt 0 ]; then
echo "Error: $1 is not a valid IPv4 host"
exit 1
fi
-exit 0 \ No newline at end of file
+exit 0