Skip to content

Commit 9da6ae5

Browse files
authored
fix: Linux Powershell update (#420)
Co-authored-by: Pim Simons <pim.simons@codit.eu>
1 parent a4643e1 commit 9da6ae5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build/templates/run-pester-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ parameters:
33
testName: ''
44

55
steps:
6-
- pwsh: 'wget -O - https://aka.ms/install-powershell.sh | sudo bash'
6+
- pwsh: |
7+
Import-Module Microsoft.PowerShell.Management -Force
8+
wget -O - https://aka.ms/install-powershell.sh | sudo bash
79
displayName: 'Update Powershell on Linux'
810
condition: eq( variables['Agent.OS'], 'Linux' )
911
- powershell: 'Invoke-Expression -Command "& { $(Invoke-RestMethod -Uri ''https://aka.ms/install-powershell.ps1'') } -UseMSI -quiet" '

0 commit comments

Comments
 (0)