mirror of
https://github.com/strongdm/comply
synced 2024-11-22 07:34:54 +00:00
pandoc must also include pdflatex
This commit is contained in:
parent
1ec70a67d1
commit
ff626a5ee2
@ -144,6 +144,18 @@ func pandocBinaryMustExist(c *cli.Context) error {
|
|||||||
if major < 2 || minor < 1 {
|
if major < 2 || minor < 1 {
|
||||||
return errors.New("pandoc 2.1 or greater required")
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user