From 2754d98cb09859852f7fe9a0a53c7b2ccdb46cae Mon Sep 17 00:00:00 2001 From: Cache do Fluxo Date: Thu, 20 Apr 2017 00:15:47 -0300 Subject: Pdflinks: fix file checking --- bin/pdflinks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pdflinks b/bin/pdflinks index ada36e8..a72d901 100755 --- a/bin/pdflinks +++ b/bin/pdflinks @@ -9,7 +9,7 @@ find data -iname '*.pdf' | grep -v 'screenshot.pdf' | while read line; do third="`echo $line | cut -d '/' -f 4`" url_base="$(basename "$line")" - if [ ! -h "$first/$second/$third/$url_base" ]; then + if [ ! -e "data/$first/$second/$third/$url_base" ]; then echo "Processing $first/$second/$third..." ( cd data/$first/$second/$third &> /dev/null && find -iname '*.pdf' -exec ln -s {} "$url_base" \;) fi -- cgit v1.2.3