aboutsummaryrefslogtreecommitdiffhomepage
path: root/markup/pandoc
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-12-18 18:20:12 +0100
committerBjørn Erik Pedersen <[email protected]>2020-12-19 17:03:07 +0100
commit10ae7c3210cd1add14d3750aa9512a87df0e1146 (patch)
tree6fa7eb1e9bfe093f3b611bbb286aefe591e1dc7a /markup/pandoc
parentae2d1bd52df0099190ef9195666d0788708b0385 (diff)
downloadhugo-10ae7c3210cd1add14d3750aa9512a87df0e1146.tar.gz
hugo-10ae7c3210cd1add14d3750aa9512a87df0e1146.zip
Improve LookPath
Diffstat (limited to 'markup/pandoc')
-rw-r--r--markup/pandoc/convert.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/markup/pandoc/convert.go b/markup/pandoc/convert.go
index bbf619ce6..63bab2748 100644
--- a/markup/pandoc/convert.go
+++ b/markup/pandoc/convert.go
@@ -15,8 +15,7 @@
package pandoc
import (
- "os/exec"
-
+ "github.com/cli/safeexec"
"github.com/gohugoio/hugo/identity"
"github.com/gohugoio/hugo/markup/internal"
@@ -65,7 +64,7 @@ func (c *pandocConverter) getPandocContent(src []byte, ctx converter.DocumentCon
}
func getPandocExecPath() string {
- path, err := exec.LookPath("pandoc")
+ path, err := safeexec.LookPath("pandoc")
if err != nil {
return ""
}