Skip to content

Commit

Permalink
Deduplicate automation autoload path
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1t3cht committed Jan 26, 2023
1 parent 15cca59 commit 642251b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/auto4_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ namespace Automation4 {

std::vector<std::future<std::unique_ptr<Script>>> script_futures;

for (auto tok : agi::Split(path, '|')) {
auto path_it = agi::Split(path, '|');
for (auto tok : std::set<agi::StringRange>(begin(path_it), end(path_it))) {
auto dirname = config::path->Decode(agi::str(tok));
if (!agi::fs::DirectoryExists(dirname)) continue;

Expand Down

0 comments on commit 642251b

Please sign in to comment.