In a mess while refactor!
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user