diff options
Diffstat (limited to 'bin/pdflinks')
-rwxr-xr-x | bin/pdflinks | 2 |
1 files changed, 1 insertions, 1 deletions
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 |