In a mess while refactor!

This commit is contained in:
Your Name
2025-05-03 21:46:32 +12:00
parent c6b7e2bb41
commit 0c2b90cf8e
34 changed files with 938 additions and 42 deletions

View File

@ -148,9 +148,9 @@
std::string search_string = "TEMPLATE=";
std::string replacement_line = "TEMPLATE=" + template_name;
// replace the line in the example/service.env file with the replacement line
std::string service_env_path = new_template_path + "/example/service.env";
std::string service_env_path = new_template_path + "/example/.template_info.env";
if (!replace_line_in_file(service_env_path, search_string, replacement_line)) {
std::cerr << "Error: Failed to replace TEMPLATE= line in service.env file" << std::endl;
std::cerr << "Error: Failed to replace TEMPLATE= line in the .template_info.env file" << std::endl;
return;
}