Commit 30ba875d authored by User expired's avatar User expired Committed by User expired
Browse files

newbib: Fix check if a file will be renamed

parent 13dc60ea
......@@ -90,7 +90,7 @@ do
| grep -o '[^ "]*\.pdf\.bib' | tail -n1)"
# Rename bib and pdf file.
test "${bibfile}" == "${targetdir}/${newbibfile}" \
test "./${bibfile}" == "${targetdir}/${newbibfile}" \
|| $ACTION "mv -i \"${bibfile}\" \"${targetdir}/${newbibfile}\"" || exit 1
# Print file path and citation key.
......
......@@ -193,9 +193,9 @@ NEWBIBFILE="$(bib-name ${SKIPJABBR} "${BIBFILE}" \
NEWPDFFILE="${NEWBIBFILE%.bib}"
# Rename bib and pdf file.
test "${BIBFILE}" == "${TARGETDIR}/${NEWBIBFILE}" \
test "./${BIBFILE}" == "${TARGETDIR}/${NEWBIBFILE}" \
|| $ACTION "mv -i \"${BIBFILE}\" \"${TARGETDIR}/${NEWBIBFILE}\"" || exit 1
test "${PDFFILE}" == "${TARGETDIR}/${NEWPDFFILE}" \
test "./${PDFFILE}" == "${TARGETDIR}/${NEWPDFFILE}" \
|| $ACTION "mv -i \"${PDFFILE}\" \"${TARGETDIR}/${NEWPDFFILE}\"" || exit 1
# Print file path and citation key.
......
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