all repos — vite @ f6f93aecaa1e0e8b1927d84656a0011dc73c6402

a fast (this time, actually) and minimal static site generator

Print output if error
Anirudh Oppiliappan x@icyphox.sh
Fri, 30 Oct 2020 18:21:14 +0530
commit

f6f93aecaa1e0e8b1927d84656a0011dc73c6402

parent

5c11e09f147d663b37f036e728fc0a760fef0e4f

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M build.gobuild.go

@@ -1,6 +1,7 @@

package main import ( + "fmt" "github.com/cross-cpm/go-shutil" "io/ioutil" "os"

@@ -14,10 +15,11 @@ var cfg = parseConfig()

func execute(cmds []string) { for _, cmd := range cmds { - _, err := exec.Command(cmd).Output() + out, err := exec.Command(cmd).Output() printMsg("running:", cmd) if err != nil { printErr(err) + fmt.Println(string(out)) } } }