From: Cache do Fluxo Date: Thu, 20 Apr 2017 03:12:53 +0000 (-0300) Subject: Pdflinks: change flag X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0892a876d67eadd5416d36e5d86a1bbabc6a5066;p=cache.git Pdflinks: change flag --- 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