Skip to content

Fix mv self-move failure on Linux in TeX build path - #8

Open
alcarraz wants to merge 1 commit into
ar:mainfrom
alcarraz:fix/mv-same-on-linux
Open

Fix mv self-move failure on Linux in TeX build path#8
alcarraz wants to merge 1 commit into
ar:mainfrom
alcarraz:fix/mv-same-on-linux

Conversation

@alcarraz

Copy link
Copy Markdown
Contributor

PDF is always "${BASENAME}.pdf", assigned in line 170.

On macOS, the move is a no-op, but it fails on Linux, this fix just removes the mv command.

Another fix could be to do nothing if the files are the same, but it would be a check that is always true, unless it is there for when/if we want to pass the PDF write route as an argument.

Test plan

  • Run ./bin/memo --tex memomemo.md on Linux (TeX path; previously hit the mv error)

GNU mv refuses to move a file onto itself, but PDF is always
"${BASENAME}.pdf", so the mv after the TeX pass was always a no-op
move that errored out on Linux. Pandoc already writes the PDF to
that path directly, so the mv is unnecessary; remove it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant