Skip to content

Commit 6512c03

Browse files
committed
run powershell with -noprofile option
1 parent 54f49d8 commit 6512c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/train/extras/command_wrapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def run(script)
137137
# especially in local mode, we cannot be sure that we get a Powershell
138138
# we may just get a `cmd`.
139139
# TODO: we may want to opt for powershell.exe -command instead of `encodeCommand`
140-
"powershell -encodedCommand #{encoded(safe_script(script))}"
140+
"powershell -NoProfile -encodedCommand #{encoded(safe_script(script))}"
141141
end
142142

143143
# suppress the progress stream from leaking to stderr

0 commit comments

Comments
 (0)