File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
ci/tasks/install-windows-updates Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,19 @@ function start_powershell_command() {
1919 local powershell_command=" ${1} "
2020
2121 echo " Starting '${powershell_command} '" >&2
22- govc guest.start \
23- -vm.ipath=" ${vm_ipath} " \
24- -l=" ${vm_username} :${vm_password} " \
25- " \\ Windows\\ System32\\ WindowsPowerShell\\ V1.0\\ powershell.exe" \
26- " ${powershell_command} "
22+ pid=$(
23+ govc guest.start \
24+ -vm.ipath=" ${vm_ipath} " \
25+ -l=" ${vm_username} :${vm_password} " \
26+ " \\ Windows\\ System32\\ WindowsPowerShell\\ V1.0\\ powershell.exe" \
27+ " ${powershell_command} "
28+ )
29+
30+ if [ -z " ${pid} " ]; then
31+ echo " No PID returned when invoking '${powershell_command} '" >&2
32+ fi
33+
34+ echo pid
2735}
2836
2937function get_powershell_pid_exit_code() {
You can’t perform that action at this time.
0 commit comments