aboutsummaryrefslogtreecommitdiff
path: root/bin/pdflinks
diff options
context:
space:
mode:
authorCache do Fluxo <cache@fluxo.info>2017-04-20 00:15:47 -0300
committerCache do Fluxo <cache@fluxo.info>2017-04-20 00:15:47 -0300
commit2754d98cb09859852f7fe9a0a53c7b2ccdb46cae (patch)
treecfb9035ff3407e9e6d00f350f554e5e5dcda2d06 /bin/pdflinks
parentaafa82c5549541e282337a01df5bc050b11ac6c4 (diff)
downloadcache-2754d98cb09859852f7fe9a0a53c7b2ccdb46cae.tar.gz
cache-2754d98cb09859852f7fe9a0a53c7b2ccdb46cae.tar.bz2
Pdflinks: fix file checking
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 ada36e8..a72d901 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 [ ! -h "$first/$second/$third/$url_base" ]; then
+ if [ ! -e "data/$first/$second/$third/$url_base" ]; then
echo "Processing $first/$second/$third..."
( cd data/$first/$second/$third &> /dev/null && find -iname '*.pdf' -exec ln -s {} "$url_base" \;)
fi