fix links counting routine for multiple files

This commit is contained in:
MorganGeek 2021-07-05 11:02:45 +02:00
parent 68308ccc29
commit ef6ebe381f

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
BASEDIR=$(dirname "$0")
cut -d'(' -f2 "$BASEDIR/README.md" | cut -d')' -f1 | grep -E "^http*" | sort -u | wc -l | tr -d ' '
cut -d'(' -f2 $(pwd)/sections/*.md README.md | cut -d')' -f1 | grep "^http" | sort -u | wc -l | tr -d ' '