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

index 057c4fb49a1fcfe5f767643302c952f210f25e4a..ada36e8ede8c8bf45c49667244a76010dd4738c6 100755 (executable)
@@ -11,6 +11,6 @@ find data -iname '*.pdf' | grep -v 'screenshot.pdf' | while read line; do
 
   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" \;)
+    ( cd data/$first/$second/$third &> /dev/null && find -iname '*.pdf' -exec ln -s {} "$url_base" \;)
   fi
 done