Skip to content

Commit 4f9d315

Browse files
committed
fix sh generation in modefile
1 parent 315f488 commit 4f9d315

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pipespec.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,10 @@ std::vector<std::pair<string, string>> toPipeSpecShVector(
332332
}
333333
else if (name == "sh") {
334334
prog = cmd.attribute("prog").value();
335-
for (auto& a : args) {
336-
prog += argprepare(a.second);
335+
for (const pugi::xml_node& arg : cmd.children()) {
336+
if (strcmp(arg.name(), "arg") == 0) {
337+
prog += argprepare(arg.text().get());
338+
}
337339
}
338340
}
339341
else if (name == "prefs") {

0 commit comments

Comments
 (0)