From 0892a876d67eadd5416d36e5d86a1bbabc6a5066 Mon Sep 17 00:00:00 2001 From: Cache do Fluxo Date: Thu, 20 Apr 2017 00:12:53 -0300 Subject: Pdflinks: change flag --- bin/pdflinks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pdflinks b/bin/pdflinks index 6c7879f..057c4fb 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 [ ! -e "$first/$second/$third/$url_base" ]; then + if [ ! -h "$first/$second/$third/$url_base" ]; then echo "Processing $first/$second/$third..." ( cd data/$first/$second/$third && find -iname '*.pdf' -exec ln -s {} "$url_base" \;) fi -- cgit v1.2.3