From: Bjørn Erik Pedersen Date: Sat, 22 Jun 2024 09:49:30 +0000 (+0200) Subject: common/hexec: Fall back to the binary in PATH if npx fails X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1c85830bc7003f9ab8ffd4b6d469a87f7fa5535d;p=brevno-suite%2Fhugo common/hexec: Fall back to the binary in PATH if npx fails Closes #12486 --- diff --git a/common/hexec/exec.go b/common/hexec/exec.go index 12775bd1c..49291354d 100644 --- a/common/hexec/exec.go +++ b/common/hexec/exec.go @@ -143,8 +143,18 @@ func (e *Exec) New(name string, arg ...any) (Runner, error) { return cm.command(arg...) } -// Npx is a convenience method to create a Runner running npx --no-install