We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6a5ddd commit b84e063Copy full SHA for b84e063
ci/tasks/install-windows-updates/run.sh
@@ -31,12 +31,15 @@ function get_powershell_pid_exit_code() {
31
32
echo "Getting exit code for ${powershell_pid}" >&2
33
# -X blocks until the guest process exits
34
- govc guest.ps \
+ json_out=$(
35
+ govc guest.ps \
36
-vm.ipath="${vm_ipath}" \
37
-l="${vm_username}:${vm_password}" \
38
-X -json \
- -p="${powershell_pid}" \
39
- | tee >&2 | jq '.processInfo[0].exitCode'
+ -p="${powershell_pid}"
40
+ )
41
+ echo "${json_out}" >&2
42
+ echo "${json_out}"| jq '.processInfo[0].exitCode'
43
}
44
45
function download_remote_file() {
0 commit comments