Update.
[scripts.git] / arxiv-bib.sh
index 3097a79..45a6b34 100755 (executable)
@@ -33,6 +33,8 @@ do
         id="$(echo "${id}" | sed -e 's|^.*/\([^\]*\)$|\1|')"
     fi
 
+    id="$(echo "${id}" | sed -e 's/.pdf$//')"
+
     curl -s > "${tmp}" "https://arxiv.org/abs/${id}"
 
     AUTHORS=""