- Fixing bug that yielded empty expanded command sets.
This commit is contained in:
@@ -17,8 +17,9 @@ namespace daggy {
|
||||
std::vector<std::vector<std::string>> commands{{}};
|
||||
|
||||
for (const auto &part : command) {
|
||||
std::vector<std::string> expandedPart;
|
||||
std::vector<std::string> expandedPart{part};
|
||||
|
||||
// Find all values of parameters, and expand them
|
||||
for (const auto &[param, paramValue] : parameters) {
|
||||
auto pos = part.find(param);
|
||||
if (pos == std::string::npos) continue;
|
||||
|
||||
Reference in New Issue
Block a user