1 Commits
v1.14 ... v1.15

Author SHA1 Message Date
Bel LaPointe
095ba7820d jsut in case 2021-02-25 22:17:32 -06:00

View File

@@ -4,9 +4,11 @@ import (
"fmt"
"io/ioutil"
"local/notes-server/config"
"log"
"os"
"os/exec"
"path"
"strings"
"time"
)
@@ -44,6 +46,9 @@ func (v *Versions) Commit() error {
func (v *Versions) cmd(cmd string, args ...string) error {
command := exec.Command(cmd, args...)
command.Dir = config.Root
_, err := command.CombinedOutput()
out, err := command.CombinedOutput()
if err != nil {
log.Println(cmd, args, ":", strings.TrimSpace(string(out)))
}
return err
}