diff options
| -rw-r--r-- | xmake/core/base/os.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index f4cdee611..c3a48b561 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -1155,7 +1155,7 @@ function os.isexec(filepath) local exts = {".exe", ".com", ".cmd", ".bat", ".ps1", ".sh"} if os.isfile(filepath) then local extension = path.extension(filepath):lower() - if extension then + if extension and #extension > 0 then if table.contains(exts, extension) then return true end |
