///////////////////////////////////////////////////////////////////////////
| 324 | |
| 325 | //////////////////////////////////////////////////////////////////////////////// |
| 326 | std::vector<std::string> Hooks::scripts(const std::string& event) const { |
| 327 | std::vector<std::string> matching; |
| 328 | for (const auto& i : _scripts) { |
| 329 | if (i.find("/" + event) != std::string::npos) { |
| 330 | File script(i); |
| 331 | if (script.executable()) matching.push_back(i); |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | return matching; |
| 336 | } |
| 337 | |
| 338 | //////////////////////////////////////////////////////////////////////////////// |
| 339 | void Hooks::separateOutput(const std::vector<std::string>& output, std::vector<std::string>& json, |