diff options
Diffstat (limited to '.local/bin/broken-links')
-rwxr-xr-x | .local/bin/broken-links | 10 |
1 files 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 \ |