summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-01-30 22:43:56 +0800
committerruki <[email protected]>2026-01-30 22:43:56 +0800
commitba2d6e53168827d73d0d726ee607cc69ea6e47d4 (patch)
tree99203b474cafd9ff00bf63029d6ab1e294b44b78
parent5c268c235f35b40a768a7df72988a5db6414fc4d (diff)
fix os.isexec
-rw-r--r--xmake/core/base/os.lua2
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