Update.
authorFrancois Fleuret <francois@fleuret.org>
Sun, 11 Feb 2018 10:12:11 +0000 (11:12 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Sun, 11 Feb 2018 10:12:11 +0000 (11:12 +0100)
arxiv-rename-pdf.sh

index 5ec49c0..7b062d6 100755 (executable)
@@ -53,7 +53,7 @@ do
     do
         [[ "${AUTHORS}" ]] && AUTHORS="${AUTHORS} and "
         AUTHORS="${AUTHORS}${line}"
-    done < <(grep -q '<meta name="citation_author"' "${tmp}" | sed -e 's/^.*content="\([^,]*, .\).*$/\1./')
+    done < <(grep '<meta name="citation_author"' "${tmp}" | sed -e 's/^.*content="\([^,]*, .\).*$/\1./')
 
     TITLE=$(grep '<meta name="citation_title"' ${tmp} | sed -e 's/^.*content="\([^"]*\)".*$/\1/')
     YEAR=$(echo ${id} | sed -e 's/^\(..\).*$/20\1/')