Skip to content

Commit 9b4d852

Browse files
committed
edge-admin upgrade命令只有获取到版本号时才输出下载进度
1 parent 974e534 commit 9b4d852

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/edge-admin/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ func main() {
159159
for range ticker.C {
160160
if manager.IsDownloading() {
161161
if !isStarted {
162+
if len(manager.NewVersion()) == 0 {
163+
continue
164+
}
162165
log.Println("start downloading v" + manager.NewVersion() + " ...")
163166
isStarted = true
164167
}

0 commit comments

Comments
 (0)