1
0

Use go timers for kill docker by timeout, fixes #12

This commit is contained in:
2018-12-08 02:53:29 +00:00
parent 49b567cd4b
commit 880af47cc5
4 changed files with 31 additions and 20 deletions

View File

@ -124,7 +124,7 @@ func main() {
"Create directories && download images")
// Check for required commands
for _, cmd := range []string{"timeout", "docker", "qemu-system-x86_64"} {
for _, cmd := range []string{"docker", "qemu-system-x86_64"} {
_, err := exec.Command("which", cmd).CombinedOutput()
if err != nil {
log.Fatalln("Command not found:", cmd)