mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🐛 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:
parent
bee38c5a39
commit
43c8ccb96b
1 changed files with 0 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue