diff options
author | Cache do Fluxo <cache@fluxo.info> | 2017-04-20 00:12:53 -0300 |
---|---|---|
committer | Cache do Fluxo <cache@fluxo.info> | 2017-04-20 00:12:53 -0300 |
commit | 0892a876d67eadd5416d36e5d86a1bbabc6a5066 (patch) | |
tree | b5bde0bf86f1256fd6a6f6512e6061a14fc86500 /bin | |
parent | ef9c0cb69b4804b680ef679ecaca36f2247f4e16 (diff) | |
download | cache-0892a876d67eadd5416d36e5d86a1bbabc6a5066.tar.gz cache-0892a876d67eadd5416d36e5d86a1bbabc6a5066.tar.bz2 |
Pdflinks: change flag
Diffstat (limited to 'bin')
-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 |