bm

bibliography manager for latex
git clone git://git.ckyln.com/bm.git
Log | Files | Refs | README | LICENSE

commit 3182f4e39dae24c3f929b2d69cb890af8fe66cde
parent ce0588f6b4b28fb072cd56da368458c31486db6d
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 22 Oct 2019 09:50:57 +0300

simplified getbib noarg check

Diffstat:
Mbm | 8+-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/bm b/bm @@ -55,13 +55,7 @@ EOF getbib() { - if [ -z "$1" ]; then - cat <<EOF -Usage: ${0##*/} getbib <pdf filename or DOI> [optional: explanation] - -EOF - exit - fi + [ -z "$1" ] && printf "Usage: ${0##*/} getbib <pdf filename or DOI> [optional: explanation]\\n\\n" && exit if [ -f "$1" ]; then doi=$(pdfinfo "$1" | grep -io "doi:.*") || doi=$(pdftotext "$1" 2>/dev/null - | grep -io "doi:.*" -m 1) ||