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