Skip to content

Commit

Permalink
run powershell with -noprofile option
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Sep 20, 2016
1 parent f8670ab commit 42457be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/train/extras/command_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def run(script)
# especially in local mode, we cannot be sure that we get a Powershell
# we may just get a `cmd`.
# TODO: we may want to opt for powershell.exe -command instead of `encodeCommand`
"powershell -encodedCommand #{encoded(safe_script(script))}"
"powershell -NoProfile -encodedCommand #{encoded(safe_script(script))}"
end

# suppress the progress stream from leaking to stderr
Expand Down

0 comments on commit 42457be

Please sign in to comment.