diff options
| author | ruki <[email protected]> | 2016-07-02 22:01:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-07-02 22:01:17 +0800 |
| commit | 383c46c282fe0fcd82e2bc8a2d227cd0528af262 (patch) | |
| tree | 40b8247e9542856b1e1187ef9066796f0ce70d7d /xmake/core/sandbox/modules/os.lua | |
| parent | af3465afb3f509904099170b986f46937784b3e5 (diff) | |
fix check bug for android on windows
Diffstat (limited to 'xmake/core/sandbox/modules/os.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/os.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua index 963ba3f55..7930ae3b2 100644 --- a/xmake/core/sandbox/modules/os.lua +++ b/xmake/core/sandbox/modules/os.lua @@ -294,6 +294,19 @@ function sandbox_os.isfile(filepath) return os.isfile(filepath) end +-- is execute program? +function sandbox_os.isexec(filepath) + + -- check + assert(filepath) + + -- format it first + filepath = vformat(filepath) + + -- done + return os.isexec(filepath) +end + -- exists file or directory? function sandbox_os.exists(file_or_dir) |
