mirror of
https://github.com/mappu/miqt.git
synced 2025-05-07 20:40:22 +00:00
miqt-docker: use -it to ensure ^C signals make it through
This commit is contained in:
parent
8328ca7e12
commit
69190ece2c
@ -115,7 +115,7 @@ func main() {
|
||||
|
||||
// Container match found - safe to run our command
|
||||
|
||||
fullCommand := []string{"run"}
|
||||
fullCommand := []string{"run", "-it"}
|
||||
|
||||
if runtime.GOOS != "windows" {
|
||||
userinfo, err := user.Current()
|
||||
@ -203,6 +203,7 @@ func main() {
|
||||
fullCommand = append(fullCommand, os.Args[2:]...)
|
||||
|
||||
cmd := dockerCommand(fullCommand...)
|
||||
cmd.Stdin = os.Stdin
|
||||
cmd.Stderr = os.Stderr
|
||||
cmd.Stdout = os.Stdout
|
||||
err = cmd.Run()
|
||||
|
Loading…
x
Reference in New Issue
Block a user