refactor: better increment
This commit is contained in:
1 parent
39c925983a
commit
1e3d429d58
1 file changed
+1
-1
@@ -87,7 +87,7 @@ collect_cidr_args() {
|
|||||||
CIDR_COUNT=0
|
CIDR_COUNT=0
|
||||||
while is_cidr "$1"; do
|
while is_cidr "$1"; do
|
||||||
CIDR_ARGS="$CIDR_ARGS $1"
|
CIDR_ARGS="$CIDR_ARGS $1"
|
||||||
CIDR_COUNT=$(($CIDR_COUNT + 1))
|
CIDR_COUNT=$((CIDR_COUNT + 1))
|
||||||
shift 1
|
shift 1
|
||||||
done
|
done
|
||||||
if [ $CIDR_COUNT -eq 0 ]; then
|
if [ $CIDR_COUNT -eq 0 ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user