mirror of
https://github.com/mappu/miqt.git
synced 2025-05-11 22:20:23 +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
|
// Container match found - safe to run our command
|
||||||
|
|
||||||
fullCommand := []string{"run"}
|
fullCommand := []string{"run", "-it"}
|
||||||
|
|
||||||
if runtime.GOOS != "windows" {
|
if runtime.GOOS != "windows" {
|
||||||
userinfo, err := user.Current()
|
userinfo, err := user.Current()
|
||||||
@ -203,6 +203,7 @@ func main() {
|
|||||||
fullCommand = append(fullCommand, os.Args[2:]...)
|
fullCommand = append(fullCommand, os.Args[2:]...)
|
||||||
|
|
||||||
cmd := dockerCommand(fullCommand...)
|
cmd := dockerCommand(fullCommand...)
|
||||||
|
cmd.Stdin = os.Stdin
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
err = cmd.Run()
|
err = cmd.Run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user