1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

This regex is too complex for bash's own replacement. Add ignore for the shellcheck rule.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2020-06-04 09:22:40 +02:00
parent 318ca75269
commit 6160eb6894
No known key found for this signature in database
GPG Key ID: FB60471F0575164A

View File

@ -236,6 +236,7 @@ trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC68345710423
else else
# Something else, convert to /24 subnet (preserves legacy behavior) # Something else, convert to /24 subnet (preserves legacy behavior)
# This sed converts "192.168.1.2" to "192.168.1.0/24" # This sed converts "192.168.1.2" to "192.168.1.0/24"
# shellcheck disable=2001
REV_SERVER_CIDR="$(sed "s+\\.[0-9]*$+\\.0/24+" <<< "${REV_SERVER_TARGET}")" REV_SERVER_CIDR="$(sed "s+\\.[0-9]*$+\\.0/24+" <<< "${REV_SERVER_TARGET}")"
fi fi
add_setting "REV_SERVER_CIDR" "${REV_SERVER_CIDR}" add_setting "REV_SERVER_CIDR" "${REV_SERVER_CIDR}"