]> gitweb.fluxo.info Git - cache.git/commitdiff
Pdflinks: change flag
authorCache do Fluxo <cache@fluxo.info>
Thu, 20 Apr 2017 03:12:53 +0000 (00:12 -0300)
committerCache do Fluxo <cache@fluxo.info>
Thu, 20 Apr 2017 03:12:53 +0000 (00:12 -0300)
bin/pdflinks

index 6c7879f5f942ab395aeb6040caeee910f2243a4a..057c4fb49a1fcfe5f767643302c952f210f25e4a 100755 (executable)
@@ -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