diff options
| author | ruki <[email protected]> | 2021-11-15 23:26:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-11-15 23:26:35 +0800 |
| commit | 23b6a0d891f91c83a790dee9a10775b595099461 (patch) | |
| tree | a1903b2e1160de106ca0551e834fe56554cf901d | |
| parent | 339c48a72a3708f19b74036d3fc5811e63f157f3 (diff) | |
improve mkdir
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index 11803cf45..82409c64a 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -68,7 +68,7 @@ function _get_command_string(cmd) elseif kind == "cd" then return string.format("cd \"%s\"", cmd.dir) elseif kind == "mkdir" then - return string.format("mkdir \"%s\"", cmd.dir) + return string.format("if not exist \"%s\" mkdir \"%s\"", cmd.dir, cmd.dir) elseif kind == "show" then return string.format("echo %s", cmd.showtext) end |
