Commit 04b5d462 authored by User expired's avatar User expired
Browse files

newbib: Multi record files are not renamed

parent a816962e
......@@ -97,9 +97,15 @@ do
| grep -o "[^ ']*\.pdf\.bib" | tail -n1)"
# Rename bib and pdf file.
test "./${bibfile}" == "${targetdir}/${newbibfile}" \
|| $ACTION "mv -i \"${bibfile}\" \"${targetdir}/${newbibfile}\"" || exit 1
if [ -n "${newbibfile}" ]
then
test "./${bibfile}" == "${targetdir}/${newbibfile}" \
|| $ACTION "mv -i \"${bibfile}\" \"${targetdir}/${newbibfile}\"" \
|| exit 1
else
newbibfile="$bibfile"
fi
# Print file path and citation key.
test -z "$DRYRUN" && grep -H @ "${targetdir}/${newbibfile}"
test -z "$DRYRUN" && grep -H ^@ "${targetdir}/${newbibfile}"
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment