lib/bolt/shell/powershell.rb in bolt-3.0.1 vs lib/bolt/shell/powershell.rb in bolt-3.1.0
- old
+ new
@@ -272,10 +272,15 @@
env_declarations(envify_params(arguments))
else
[]
end
- output = execute([Snippets.shell_init, *env_assignments, command].join("\n"))
+ output = execute([
+ Snippets.shell_init,
+ Snippets.append_ps_module_path(dir),
+ *env_assignments,
+ command
+ ].join("\n"))
Bolt::Result.for_task(target, output.stdout.string,
output.stderr.string,
output.exit_code,
task.name,