Skip to content

Commit

Permalink
fix(learn): 命令中的路径用引号包围
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <[email protected]>
  • Loading branch information
YdrMaster committed Jul 23, 2024
1 parent 7835d93 commit 3912fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learn/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ constexpr static auto XMAKE = __XMAKE__;

static int process_run(const char *cmd, const char *proj, const char *log) {
static const auto exercises = fs::absolute(fs::path(XMAKE) / "exercises");
auto command = std::string("xmake ") + cmd + " -P " + exercises.string() + ' ' + proj;
auto command = std::string("xmake ") + cmd + " -P \"" + exercises.string() + "\" " + proj;
if (log) {
command += " >> ";
command += log;
Expand Down

0 comments on commit 3912fbf

Please sign in to comment.