mirror of
https://github.com/strongdm/comply
synced 2024-11-25 17:14:53 +00:00
use filepath join to open index html
This commit is contained in:
parent
0f1badca5b
commit
c99d800397
@ -185,7 +185,7 @@ func pandocBinaryMustExist(c *cli.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// pdflatex must also be present
|
// pdflatex must also be present
|
||||||
cmd = exec.Command("pdflatex", "-v")
|
cmd = exec.Command("pdflatex", "--version")
|
||||||
outputRaw, err = cmd.Output()
|
outputRaw, err = cmd.Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "error calling pdflatex")
|
return errors.Wrap(err, "error calling pdflatex")
|
||||||
|
@ -82,7 +82,7 @@ func html(output string, live bool, errCh chan error, wg *sync.WaitGroup) {
|
|||||||
if live {
|
if live {
|
||||||
if !opened {
|
if !opened {
|
||||||
opened = true
|
opened = true
|
||||||
open.Run("output/index.html")
|
open.Run(filepath.Join(".", "output", "index.html"))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
wg.Done()
|
wg.Done()
|
||||||
|
Loading…
Reference in New Issue
Block a user