Skip to content

Commit 757e7cd

Browse files
Merge pull request #70 from Splaxi/import-vsts-prereq
Import-Module inside vsts-prerequisites.ps1
2 parents 8b43816 + a799aa8 commit 757e7cd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
Write-Host "Installing Pester" -ForegroundColor Cyan
2-
Install-Module Pester -Force -SkipPublisherCheck
3-
Write-Host "Installing PSFramework" -ForegroundColor Cyan
4-
Install-Module PSFramework -Force -SkipPublisherCheck
5-
Write-Host "Installing PSScriptAnalyzer" -ForegroundColor Cyan
6-
Install-Module PSScriptAnalyzer -Force -SkipPublisherCheck
1+
$modules = @("Pester", "PSFramework", "PSScriptAnalyzer")
2+
3+
foreach ($module in $modules) {
4+
Write-Host "Installing $module" -ForegroundColor Cyan
5+
Install-Module $module -Force -SkipPublisherCheck
6+
Import-Module $module -Force -PassThru
7+
}

0 commit comments

Comments
 (0)