Skip to content

Commit 3b5012c

Browse files
committed
fix(run): Move update check to after replication logic for improved flow
1 parent 5c99c27 commit 3b5012c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/sling/sling_run.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,6 @@ func processRun(c *g.CliSC) (ok bool, err error) {
200200
os.Setenv("SLING_CLI", "TRUE")
201201
os.Setenv("SLING_CLI_ARGS", g.Marshal(os.Args[1:]))
202202

203-
// check for update, and print note
204-
go checkUpdate()
205-
defer printUpdateAvailable()
206-
207203
runReplication:
208204
defer connection.CloseAll()
209205

@@ -214,6 +210,10 @@ runReplication:
214210
} else {
215211
g.Info(env.CyanString(text))
216212
}
213+
214+
// check for update, and print note
215+
go checkUpdate()
216+
defer printUpdateAvailable()
217217
}
218218

219219
if pipelineCfgPath != "" {

0 commit comments

Comments
 (0)