From ff4c0e9d546ace7557ebcd71506933b6e7461c2f Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 8 Sep 2025 20:08:32 +1200 Subject: [PATCH] feat: Update 2 files --- source/src/commands/create-service.cpp | 4 ++-- source/src/services.cpp | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/source/src/commands/create-service.cpp b/source/src/commands/create-service.cpp index 6d51cc2..ef44af7 100644 --- a/source/src/commands/create-service.cpp +++ b/source/src/commands/create-service.cpp @@ -160,7 +160,7 @@ namespace dropshell std::string template_info_env_file = localfile::template_info_env(server_name,service_name); ASSERT(std::filesystem::exists(template_info_env_file), "Template info env file not found: " + template_info_env_file); std::ofstream template_info_env_file_out(template_info_env_file, std::ios::app); // append to the file. - template_info_env_file_out << "TEMPLATE_HASH=" << tinfo.hash() << std::endl; + template_info_env_file_out << std::endl << "TEMPLATE_HASH=" << tinfo.hash() << std::endl; template_info_env_file_out.close(); @@ -267,7 +267,7 @@ namespace dropshell // append TEMPLATE_HASH to the .template_info.env file ASSERT(std::filesystem::exists(target_template_info_env_file), "Template info env file not found: " + target_template_info_env_file); std::ofstream template_info_env_file_out(target_template_info_env_file, std::ios::app); // append to the file. - template_info_env_file_out << "TEMPLATE_HASH=" << tinfo.hash() << std::endl; + template_info_env_file_out << std::endl << "TEMPLATE_HASH=" << tinfo.hash() << std::endl; template_info_env_file_out.close(); return true; diff --git a/source/src/services.cpp b/source/src/services.cpp index ccb9780..ff18219 100644 --- a/source/src/services.cpp +++ b/source/src/services.cpp @@ -142,7 +142,11 @@ namespace dropshell service.service_template_hash_match = false; if (it == variables.end()) - error << "Variable TEMPLATE_HASH not found in the service " << filenames::template_info_env << " for "<second;