File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
ci/tasks/install-windows-updates Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function wait_for_vm_to_come_up() {
3333 set -e
3434}
3535
36- function run_pwsh_command_with_govc () {
36+ function run_powershell_command_with_logging () {
3737 command=$1
3838 echo " Running $command "
3939 pid=$(
@@ -45,8 +45,8 @@ function run_pwsh_command_with_govc() {
4545
4646wait_for_vm_to_come_up
4747
48- run_pwsh_command_with_govc ' Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'
49- run_pwsh_command_with_govc ' Install-Module -Name PSWindowsUpdate -MinimumVersion 2.1.0.1 -Force'
48+ run_powershell_command_with_logging ' Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'
49+ run_powershell_command_with_logging ' Install-Module -Name PSWindowsUpdate -MinimumVersion 2.1.0.1 -Force'
5050
5151returnWindowsUpdateCount=" exit (([array](Get-WindowsUpdate)).Count)"
5252echo " getting update count"
@@ -87,8 +87,8 @@ while [[ updates_remaining -ne 0 ]]; do
8787 echo " Updates remaining: ${updates_remaining} "
8888done
8989
90- run_pwsh_command_with_govc " Get-Hotfix > C:\\ hotfix.log"
90+ run_powershell_command_with_logging " Get-Hotfix > C:\\ hotfix.log"
9191
9292govc guest.download -l " ${vm_username} :${vm_password} " -vm=" ${vm_ipath} " " C:\\ hotfix.log" hotfix-log/hotfixes.log
9393
94- run_pwsh_command_with_govc " Dism.exe /online /Cleanup-Image /StartComponentCleanup"
94+ run_powershell_command_with_logging " Dism.exe /online /Cleanup-Image /StartComponentCleanup"
You can’t perform that action at this time.
0 commit comments