From 5d5ea552caf80ff0c69e6942b152b15d7639bc75 Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Wed, 4 Sep 2024 13:44:27 +0800 Subject: [PATCH] update getbib --- getbib | 3 +++ 1 file changed, 3 insertions(+) diff --git a/getbib b/getbib index e435d8b..153b786 100755 --- a/getbib +++ b/getbib @@ -86,6 +86,9 @@ CITEDBIBS=$(grep bibcite "$AUXFILE" | sed 's/.*\\bibcite{//' | sed 's/}.*$//' | CITEDBIBS_REDUCED="$CITEDBIBS" for FILE in $BIBDATAFILES do + if [[ ! -f $FILE && -f $FILE.bib ]]; then + FILE=$FILE.bib + fi CITEDBIBS="$CITEDBIBS_REDUCED" for BIB in $CITEDBIBS do