use standard bash to remove CIDR

This commit is contained in:
Tommy Huff 2016-10-22 21:59:23 -04:00
parent f1b8095f18
commit 92249365b4

View file

@ -28,7 +28,7 @@ gravityraw="/etc/pihole/list.preEventHorizon"
gravity="/etc/pihole/gravity.list"
today=$(date "+%b %e")
IPv4_address=$(echo "${IPv4_address}" | cut -d"/" -f1)
IPv4_address=${IPv4_address%/*}
CalcPercentBlockedToday() {
if [ "${queriesToday}" != "Err." ] && [ "${blockedToday}" != "Err." ]; then