Skip to content

Commit

Permalink
fix sh generation in modefile
Browse files Browse the repository at this point in the history
  • Loading branch information
flammie committed Oct 3, 2024
1 parent 315f488 commit 4f9d315
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pipespec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,10 @@ std::vector<std::pair<string, string>> toPipeSpecShVector(
}
else if (name == "sh") {
prog = cmd.attribute("prog").value();
for (auto& a : args) {
prog += argprepare(a.second);
for (const pugi::xml_node& arg : cmd.children()) {
if (strcmp(arg.name(), "arg") == 0) {
prog += argprepare(arg.text().get());
}
}
}
else if (name == "prefs") {
Expand Down

0 comments on commit 4f9d315

Please sign in to comment.