🐛 Built-in Pandoc is not working on Unix-like

Fix https://github.com/siyuan-note/siyuan/issues/16623

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-19 20:07:36 +08:00
parent bee38c5a39
commit 43c8ccb96b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -222,14 +222,6 @@ func IsValidPandocBin(binPath string) bool {
return false
}
// 在 Unix-like 上要求拥有可执行权限
if !gulu.OS.IsWindows() {
if fi.Mode().Perm()&os.FileMode(0o111) == 0 {
logging.LogWarnf("file [%s] is not executable", binPath)
return false
}
}
// 读取文件头判断是否为二进制并排除脚本(#!
f, err := os.Open(binPath)
if err != nil {