Fix script running
This commit is contained in:
parent
94f2236a7c
commit
b64ade4d04
@ -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);
|
fs::path template_path = fs::path(service.template_path);
|
||||||
for (const auto& entry : fs::directory_iterator(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))
|
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;
|
return commands;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user