fix quoting in mask2cidr

This commit is contained in:
root 2015-02-24 17:13:13 +00:00
parent 390fb6858b
commit f3ccb0f9d8

View File

@ -2,7 +2,7 @@ mask2cidr() {
local netmask=$1 local netmask=$1
local nbits=0 local nbits=0
IFS=. IFS=.
for dec in "$netmask"; do for dec in $netmask; do
case $dec in case $dec in
255) let nbits+=8;; 255) let nbits+=8;;
254) let nbits+=7;; 254) let nbits+=7;;