From ba2d6e53168827d73d0d726ee607cc69ea6e47d4 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 30 Jan 2026 22:43:56 +0800 Subject: fix os.isexec --- xmake/core/base/os.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1