Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-19 19:58:33 +08:00
parent f54082cc82
commit c2adac344c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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
}