Use go timers for kill docker by timeout, fixes #12
This commit is contained in:
2
main.go
2
main.go
@ -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)
|
||||
|
Reference in New Issue
Block a user