aboutsummaryrefslogtreecommitdiff
path: root/bin/pdflinks
diff options
context:
space:
mode:
authorCache do Fluxo <cache@fluxo.info>2017-04-20 00:12:53 -0300
committerCache do Fluxo <cache@fluxo.info>2017-04-20 00:12:53 -0300
commit0892a876d67eadd5416d36e5d86a1bbabc6a5066 (patch)
treeb5bde0bf86f1256fd6a6f6512e6061a14fc86500 /bin/pdflinks
parentef9c0cb69b4804b680ef679ecaca36f2247f4e16 (diff)
downloadcache-0892a876d67eadd5416d36e5d86a1bbabc6a5066.tar.gz
cache-0892a876d67eadd5416d36e5d86a1bbabc6a5066.tar.bz2
Pdflinks: change flag
Diffstat (limited to 'bin/pdflinks')
-rwxr-xr-xbin/pdflinks2
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