From 8d1fced3922dd55d6c0fccddc92f329ed56e3dc1 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 25 Oct 2022 08:51:41 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Linux=20=E6=A1=8C=E9=9D=A2=E7=AB=AF?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0=E6=9C=AA=E8=B5=8B=E4=BA=88?= =?UTF-8?q?=E5=8F=AF=E6=89=A7=E8=A1=8C=E6=9D=83=E9=99=90=20Fix=20https://g?= =?UTF-8?q?ithub.com/siyuan-note/siyuan/issues/6342?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/updater.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/model/updater.go b/kernel/model/updater.go index 0ba434d08..f41c6590c 100644 --- a/kernel/model/updater.go +++ b/kernel/model/updater.go @@ -43,8 +43,10 @@ func execNewVerInstallPkg(newVerInstallPkgPath string) { if gulu.OS.IsWindows() { cmd = exec.Command(newVerInstallPkgPath) } else if gulu.OS.IsDarwin() { + exec.Command("chmod", "+x", newVerInstallPkgPath).CombinedOutput() cmd = exec.Command("open", newVerInstallPkgPath) } else if gulu.OS.IsLinux() { + exec.Command("chmod", "+x", newVerInstallPkgPath).CombinedOutput() cmd = exec.Command("sh", "-c", newVerInstallPkgPath) } gulu.CmdAttr(cmd)