Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit 5117fdf

Browse files
authored
Merge pull request #166 from cdr/no-open-exists
Check --no-open flag when container already exists
2 parents 32a0139 + 2ce4465 commit 5117fdf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runcmd.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ func (c *runcmd) Run(fl *flag.FlagSet) {
127127
if err == nil {
128128
resp.Body.Close()
129129

130+
if c.noOpen {
131+
os.Exit(0)
132+
}
130133
err = proj.open()
131134
if err != nil {
132135
flog.Error("failed to open project: %v", err)

0 commit comments

Comments
 (0)