mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
isc-dhcp: fix typeof regex for IP address pattern
Missing backslash in "\d+" for last digit of dotted quad. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
PKG_NAME:=isc-dhcp
|
PKG_NAME:=isc-dhcp
|
||||||
UPSTREAM_NAME:=dhcp
|
UPSTREAM_NAME:=dhcp
|
||||||
PKG_VERSION:=4.4.0
|
PKG_VERSION:=4.4.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ static_hosts() {
|
|||||||
|
|
||||||
typeof() {
|
typeof() {
|
||||||
echo "$1" | awk '
|
echo "$1" | awk '
|
||||||
/^\d+\.\d+\.\d+\.d+$/ { print "ip\n"; next; }
|
/^\d+\.\d+\.\d+\.\d+$/ { print "ip\n"; next; }
|
||||||
/^(true|false)$/ { print "bool\n"; next; }
|
/^(true|false)$/ { print "bool\n"; next; }
|
||||||
/^\d+$/ { print "integer\n"; next; }
|
/^\d+$/ { print "integer\n"; next; }
|
||||||
/^"[^"]*"$/ { print "string\n"; next; }
|
/^"[^"]*"$/ { print "string\n"; next; }
|
||||||
|
|||||||
Reference in New Issue
Block a user