change sync prompt

This commit is contained in:
tickstep 2022-06-15 23:02:19 +08:00
parent 911b07cc8a
commit 855b640d9f

View File

@ -193,8 +193,8 @@ func RunSync(fileDownloadParallel, fileUploadParallel int, downloadBlockSize, up
return
}
c := ""
fmt.Print("本命令不会退出如需要结束同步备份进程请输入y然后按Enter键进行停止")
for strings.ToLower(c) != "y" {
fmt.Print("本命令不会退出如需要结束同步备份进程请输入y然后按Enter键进行停止")
fmt.Scan(&c)
}
fmt.Println("正在停止同步备份任务,请稍等...")