fix quoting in mask2cidr
This commit is contained in:
parent
390fb6858b
commit
f3ccb0f9d8
@ -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;;
|
||||||
|
Loading…
Reference in New Issue
Block a user