mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 19:38:48 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
f54082cc82
commit
c2adac344c
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ func IsValidPandocBin(binPath string) bool {
|
|||
|
||||
// 在 Unix-like 上要求拥有可执行权限
|
||||
if !gulu.OS.IsWindows() {
|
||||
if fi.Mode().Perm()&0111 == 0 {
|
||||
if fi.Mode().Perm()&os.FileMode(0o111) == 0 {
|
||||
logging.LogWarnf("file [%s] is not executable", binPath)
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue