parent
0c82c1920e
commit
6202c67fe8
|
@ -175,12 +175,12 @@ fn run_pipeline(
|
||||||
{
|
{
|
||||||
ctx.scope.add_var(param.0.name(), value[0].clone());
|
ctx.scope.add_var(param.0.name(), value[0].clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
let result =
|
let result =
|
||||||
run_block(&captured_block.block, ctx, input, external_redirection);
|
run_block(&captured_block.block, ctx, input, external_redirection);
|
||||||
ctx.scope.exit_scope();
|
ctx.scope.exit_scope();
|
||||||
|
|
||||||
let result = result?;
|
result?
|
||||||
return Ok(result);
|
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
return Err(ShellError::labeled_error("Dynamic commands must start with a block (or variable pointing to a block)", "needs to be a block", call.head.span));
|
return Err(ShellError::labeled_error("Dynamic commands must start with a block (or variable pointing to a block)", "needs to be a block", call.head.span));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user