check length
This commit is contained in:
parent
29ad6ee6ad
commit
1095838cca
7
build.go
7
build.go
@ -53,7 +53,12 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func runCmd(args ...string) error {
|
func runCmd(args ...string) error {
|
||||||
cmd := exec.Command(args[0], args[1:]...)
|
var cmd *exec.Cmd
|
||||||
|
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