commit f55040d3851560472b3f669d1935ce5bbd5aba54
parent 0ff487452a65d8550817dafaa1d428664a9befa9
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 30 Jun 2019 11:36:10 +0200
checklinks.sh: don't change the directory for other items
it produced a false-positive for the attachbelow index.md
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/checklinks.sh b/checklinks.sh
@@ -26,9 +26,10 @@ find "$t" -name "*.md" -type f | while read -r f; do
p="${l#/}"
if test x"$l" != x"$p"; then
# prefix is "/", use topmost dir + path.
- d="$t"
+ path="$t/$l"
+ else
+ path="$d/$l"
fi
- path="$d/$l"
fi
test -e "$path" || echo "$f $l $path"