Thanks to visit codestin.com
Credit goes to github.com

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

Commit 2ce4465

Browse files
committed
Check --no-open flag when container already exists
1 parent ac1dfa9 commit 2ce4465

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)