diff options
Diffstat (limited to 'cmd/app/app.go')
| -rw-r--r-- | cmd/app/app.go | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cmd/app/app.go b/cmd/app/app.go index d9ed70c2..6340ed90 100644 --- a/cmd/app/app.go +++ b/cmd/app/app.go @@ -74,7 +74,7 @@ func parse(id string, base *check.Absolute, r io.Reader) (*hst.Config, error) { Shell: shell, Home: home, Path: shell, - Args: []string{"zsh", "-ic"}, + Args: []string{"zsh", "-c"}, Flags: hst.FCoverRun, }, @@ -108,10 +108,11 @@ func parse(id string, base *check.Absolute, r io.Reader) (*hst.Config, error) { } c.Container.Args = append(c.Container.Args, s.Text(), "") - var flagGPU, flagSystemBus bool + var flagInteractive, flagGPU, flagSystemBus bool flags := map[string]*bool{ - "gpu": &flagGPU, - "system_bus": &flagSystemBus, + "interactive": &flagInteractive, + "gpu": &flagGPU, + "system_bus": &flagSystemBus, } for s.Scan() { @@ -259,6 +260,10 @@ func parse(id string, base *check.Absolute, r io.Reader) (*hst.Config, error) { return nil, err } + if flagInteractive { + c.Container.Args[1] += "i" + } + if flagGPU { c.Container.Filesystem = append(c.Container.Filesystem, []hst.FilesystemConfigJSON{ {FilesystemConfig: &hst.FSBind{ |
