mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Update getbib
This commit is contained in:
parent
32624bce64
commit
89e7d08b2a
@ -4,7 +4,7 @@
|
||||
if [ -f "$1" ]; then
|
||||
# Try to get DOI from pdfinfo or pdftotext output.
|
||||
doi=$(pdfinfo "$1" | grep -io "doi:.*") ||
|
||||
doi=$(pdftotext "$1" 2>/dev/null - | grep -io "doi:.*" -m 1 | sed 's/ //g') ||
|
||||
doi=$(pdftotext "$1" 2>/dev/null - | grep -io "doi:.*\s*\S*[0-9A-Za-z]" -m 1 ||
|
||||
exit 1
|
||||
else
|
||||
doi="$1"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user