From a8032e04280e2cf80c06d11b948c0ea9f260a43a Mon Sep 17 00:00:00 2001 From: David Date: Sun, 19 May 2024 19:22:48 +0200 Subject: [PATCH] fix: docstrings --- nix/kexec-installer/restore_routes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/kexec-installer/restore_routes.sh b/nix/kexec-installer/restore_routes.sh index f9ce3f8..7ab5940 100755 --- a/nix/kexec-installer/restore_routes.sh +++ b/nix/kexec-installer/restore_routes.sh @@ -5,7 +5,7 @@ filter_interfaces() { # This function takes a list of network interfaces as input and filters # out loopback interfaces, interfaces without a MAC address, and addresses # 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=("$@") for net in "${network[@]}"; do @@ -27,7 +27,7 @@ filter_interfaces() { filter_routes() { # This function takes a list of routes as input and filters out routes # with protocols "dhcp", "kernel", or "ra". The filtered routes are - # returned as an array. + # returned one by one on stdout. local routes=("$@") for route in "${routes[@]}"; do