diff options
| author | ruki <[email protected]> | 2020-02-23 10:38:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-23 10:38:15 +0800 |
| commit | 9366df74ac518a568de7091bcffca735632dc200 (patch) | |
| tree | 437fdcf583033de53f971ea0fc99586f19ac6d67 /xmake/core/base/os.lua | |
| parent | abd91d0047c0ed5420ce8e68987f6a4f8c31ded0 (diff) | |
improve os.args
Diffstat (limited to 'xmake/core/base/os.lua')
| -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 0ec557dcb..ff0b494e8 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -232,7 +232,7 @@ function os.args(argv) arg = arg:trim() if #arg > 0 then arg = arg:gsub("([\"\\])", "\\%1") - if arg:find("%s") then + if arg:find("[%s%(%)]") then if args then args = args .. " \"" .. arg .. "\"" else |
