From b64ade4d04ba957e1f828bc5e5c11c34f56699f2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 23 Apr 2025 22:45:27 +1200 Subject: [PATCH] Fix script running --- src/services.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services.cpp b/src/services.cpp index 93f02ee..6f4ff72 100644 --- a/src/services.cpp +++ b/src/services.cpp @@ -97,7 +97,7 @@ std::set get_used_commands(const std::string &server_name, const st fs::path template_path = fs::path(service.template_path); for (const auto& entry : fs::directory_iterator(template_path)) { if (fs::is_regular_file(entry) && entry.path().extension() == ".sh" && (entry.path().filename().string().rfind("_", 0) != 0)) - commands.insert(entry.path().filename().string()); + commands.insert(entry.path().stem().string()); } return commands; }