1
0
mirror of https://github.com/strongdm/comply synced 2024-12-23 14:07:34 +00:00

pandoc must also include pdflatex

This commit is contained in:
Justin McCarthy 2018-05-28 16:46:35 -05:00
parent 1ec70a67d1
commit ff626a5ee2
No known key found for this signature in database
GPG Key ID: 900437410E142A48

View File

@ -144,6 +144,18 @@ func pandocBinaryMustExist(c *cli.Context) error {
if major < 2 || minor < 1 {
return errors.New("pandoc 2.1 or greater required")
}
// pdflatex must also be present
cmd = exec.Command("pdflatex", "-v")
outputRaw, err = cmd.Output()
if err != nil {
return errors.Wrap(err, "error calling pdflatex")
}
if !strings.Contains(string(outputRaw), "TeX") {
return errors.New("pdflatex is required")
}
return nil
}