Skip to content

Commit 3912fbf

Browse files
committed
fix(learn): 命令中的路径用引号包围
Signed-off-by: YdrMaster <[email protected]>
1 parent 7835d93 commit 3912fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

learn/test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ constexpr static auto XMAKE = __XMAKE__;
1313

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

0 commit comments

Comments
 (0)