parent
7d62a9d054
commit
c2d1a13208
7
build.go
7
build.go
@ -53,12 +53,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func runCmd(args ...string) error {
|
func runCmd(args ...string) error {
|
||||||
var cmd *exec.Cmd
|
cmd := exec.Command(args[0], args[1:]...)
|
||||||
if len(args) > 1 {
|
|
||||||
cmd = exec.Command(args[0], args[1:]...)
|
|
||||||
} else {
|
|
||||||
cmd = exec.Command(args[0])
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd.Stdin = os.Stdin
|
cmd.Stdin = os.Stdin
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
|
Loading…
Reference in New Issue
Block a user