Fix script running

This commit is contained in:
Your Name 2025-04-23 22:45:27 +12:00
parent 94f2236a7c
commit b64ade4d04

View File

@ -97,7 +97,7 @@ std::set<std::string> 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;
}