mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🐛 桌面端拉起自动更新安装包偶尔失败 Fix https://github.com/siyuan-note/siyuan/issues/5996
This commit is contained in:
parent
da392ba0d2
commit
400fc166b2
2 changed files with 6 additions and 2 deletions
|
|
@ -46,12 +46,11 @@ func execNewVerInstallPkg(newVerInstallPkgPath string) {
|
|||
cmd = exec.Command("sh", "-c", newVerInstallPkgPath)
|
||||
}
|
||||
util.CmdAttr(cmd)
|
||||
data, cmdErr := cmd.CombinedOutput()
|
||||
cmdErr := cmd.Start()
|
||||
if nil != cmdErr {
|
||||
logging.LogErrorf("exec install new version failed: %s", cmdErr)
|
||||
return
|
||||
}
|
||||
logging.LogInfof("installed new version output [%s]", data)
|
||||
}
|
||||
|
||||
func getNewVerInstallPkgPath() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue