Skip to content

Commit

Permalink
fix: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vansangpfiev committed Sep 10, 2024
1 parent 1d3a54c commit 093146b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions engine/commands/cortex_upd_cmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ void CortexUpdCmd::Exec(std::string v) {
if (!GetNightly(v))
return;
} else {
if (!GetProAndBeta(v))
if (!GetStableAndBeta(v))
return;
}
CLI_LOG("Update cortex sucessfully");
}

bool CortexUpdCmd::GetProAndBeta(const std::string& v) {
bool CortexUpdCmd::GetStableAndBeta(const std::string& v) {
// Check if the architecture and OS are supported
auto system_info = system_info_utils::GetSystemInfo();
if (system_info.arch == system_info_utils::kUnsupported ||
Expand Down Expand Up @@ -136,9 +136,9 @@ bool CortexUpdCmd::GetProAndBeta(const std::string& v) {
return false;
}

// Replace binay file
// Replace binary file
auto executable_path = file_manager_utils::GetExecutableFolderContainerPath();
auto src = executable_path / "cortex" / "cortex-cpp" / GetCortexBinary();
auto src = executable_path / "cortex" / kCortexBinary / GetCortexBinary();
auto dst = executable_path / GetCortexBinary();
return ReplaceBinaryInflight(src, dst);
}
Expand Down
2 changes: 1 addition & 1 deletion engine/commands/cortex_upd_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class CortexUpdCmd {
void Exec(std::string version);

private:
bool GetProAndBeta(const std::string& v);
bool GetStableAndBeta(const std::string& v);
bool GetNightly(const std::string& v);
};

Expand Down

0 comments on commit 093146b

Please sign in to comment.