Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
095ba7820d |
@@ -4,9 +4,11 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"local/notes-server/config"
|
"local/notes-server/config"
|
||||||
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path"
|
"path"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -44,6 +46,9 @@ func (v *Versions) Commit() error {
|
|||||||
func (v *Versions) cmd(cmd string, args ...string) error {
|
func (v *Versions) cmd(cmd string, args ...string) error {
|
||||||
command := exec.Command(cmd, args...)
|
command := exec.Command(cmd, args...)
|
||||||
command.Dir = config.Root
|
command.Dir = config.Root
|
||||||
_, err := command.CombinedOutput()
|
out, err := command.CombinedOutput()
|
||||||
|
if err != nil {
|
||||||
|
log.Println(cmd, args, ":", strings.TrimSpace(string(out)))
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user