fix: docstrings

This commit is contained in:
David 2024-05-19 19:22:48 +02:00
parent eeb2377839
commit a8032e0428
No known key found for this signature in database
GPG key ID: AB15A6AF1101390D

View file

@ -5,7 +5,7 @@ filter_interfaces() {
# This function takes a list of network interfaces as input and filters # This function takes a list of network interfaces as input and filters
# out loopback interfaces, interfaces without a MAC address, and addresses # out loopback interfaces, interfaces without a MAC address, and addresses
# with a "link" scope or marked as dynamic (from DHCP or router # with a "link" scope or marked as dynamic (from DHCP or router
# advertisements). The filtered interfaces are returned as an array. # advertisements). The filtered interfaces are returned one by one on stdout.
local network=("$@") local network=("$@")
for net in "${network[@]}"; do for net in "${network[@]}"; do
@ -27,7 +27,7 @@ filter_interfaces() {
filter_routes() { filter_routes() {
# This function takes a list of routes as input and filters out routes # This function takes a list of routes as input and filters out routes
# with protocols "dhcp", "kernel", or "ra". The filtered routes are # with protocols "dhcp", "kernel", or "ra". The filtered routes are
# returned as an array. # returned one by one on stdout.
local routes=("$@") local routes=("$@")
for route in "${routes[@]}"; do for route in "${routes[@]}"; do