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.
guest.run
1 parent 90cf676 commit 03213d0Copy full SHA for 03213d0
ci/tasks/install-windows-updates/run.sh
@@ -90,13 +90,14 @@ function get_windows_updates_remaining() {
90
91
if [[ "${exit_code}" == "null" ]]; then
92
echo "Checking for updates remaining (via 'guest.run')..." >&2
93
- exit_code=$(
+ raw_exit_code=$(
94
govc guest.run \
95
-vm.ipath="${vm_ipath}" \
96
-l="${vm_username}:${vm_password}" \
97
"${powershell_exe}" \
98
"(Get-WindowsUpdate).Count"
99
)
100
+ exit_code="${raw_exit_code/$'\r'/}"
101
echo "Checking for updates remaining (via 'guest.run') returned '${exit_code}'" >&2
102
fi
103
0 commit comments