mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
326b5a2d7f
commit
4636ee6c3a
1 changed files with 3 additions and 1 deletions
|
|
@ -222,9 +222,10 @@ func IsValidPandocBin(binPath string) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
// 在 Unix 上要求拥有可执行权限
|
||||
// 在 Unix-like 上要求拥有可执行权限
|
||||
if !gulu.OS.IsWindows() {
|
||||
if fi.Mode().Perm()&0111 == 0 {
|
||||
logging.LogWarnf("file [%s] is not executable", binPath)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
@ -273,6 +274,7 @@ func IsValidPandocBin(binPath string) bool {
|
|||
}
|
||||
|
||||
if !isBin {
|
||||
logging.LogWarnf("file [%s] is not a valid binary executable", binPath)
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue