From 706f0de3461d0893409650b3131e3eb5a5f2def5 Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 11 Feb 2023 19:27:53 -0500 Subject: .local/bin/broken-links: Format --- .local/bin/broken-links | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.local/bin/broken-links b/.local/bin/broken-links index 20da6ef..02db6a0 100755 --- a/.local/bin/broken-links +++ b/.local/bin/broken-links @@ -1,7 +1,13 @@ #!/bin/sh -eu -lynx -nocolor -dump -listonly "${1:-https://example.com}" | - grep --color="never" "\." | +lynx \ + -nocolor \ + -dump \ + -listonly \ + "${1:-https://example.com}" | + grep \ + --color="never" \ + "\." | while read -r line; do url=${line#*. } head=$(wget \ -- cgit v1.2.3