|
|
@@ -56,7 +56,12 @@ func runch(filename string) {
|
|
|
fmt.Println("filename:", filename)
|
|
|
cmd := exec.Command("sh", "./update.sh", filename)
|
|
|
fmt.Println("cmd param:", cmd.Args)
|
|
|
- cmd.Run()
|
|
|
+ // cmd.Run()
|
|
|
+ out, err := cmd.CombinedOutput()
|
|
|
+ if err != nil {
|
|
|
+ fmt.Printf("update out:\n%s\n", string(out))
|
|
|
+ }
|
|
|
+ fmt.Printf("update out:\n%s\n", string(out))
|
|
|
} else {
|
|
|
_ = exec.Command("sh", "./update.sh").Run()
|
|
|
}
|