summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-11 17:07:56 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-11 17:07:56 +1000
commit77191ea67c8e69822e504fa59bdac2d69451d529 (patch)
treebd4d9c37ebbd4a0160a8652507604801df619a80 /scripts
parent176aa62fe0f00baaa16aa307a396e1d4e2c87fba (diff)
show output line by line in deploy script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/push_new_patch.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/push_new_patch.go b/scripts/push_new_patch.go
index 692a42f78..e11865fff 100755
--- a/scripts/push_new_patch.go
+++ b/scripts/push_new_patch.go
@@ -10,12 +10,14 @@ import (
"fmt"
"io/ioutil"
"log"
+ "os"
"os/exec"
"strconv"
"strings"
)
func main() {
+
version, err := ioutil.ReadFile("VERSION")
if err != nil {
log.Panicln(err.Error())
@@ -47,9 +49,15 @@ func main() {
func runCommand(args ...string) {
fmt.Println(strings.Join(args, " "))
- output, err := exec.Command(args[0], args[1:]...).CombinedOutput()
+ cmd := exec.Command(args[0], args[1:]...)
+ cmd.Stdout = os.Stdout
+ cmd.Stderr = os.Stderr
+ err := cmd.Start()
+ if err != nil {
+ panic(err.Error())
+ }
+ err = cmd.Wait()
if err != nil {
panic(err.Error())
}
- log.Print(string(output))
}