Skip to content

Commit 43e30af

Browse files
committed
Fixes for PublishedModules
- Remove fake error thrown upon publishing AzureRM module - Include AzureRM module in All scope
1 parent 157095e commit 43e30af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/PublishModules.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ if (($scope -eq 'All') -or ($scope -eq 'AzureStorage')) {
7676
Publish-Module -Path $modulePath -NuGetApiKey $apiKey -Repository $repoName
7777
}
7878

79-
if ($scope -eq 'AzureRM') {
79+
if (($scope -eq 'All') -or ($scope -eq 'AzureRM')) {
8080
# Publish AzureRM module
8181
$modulePath = "$PSScriptRoot\AzureRM"
8282
Write-Host "Publishing AzureRM module from $modulePath"
@@ -96,7 +96,7 @@ if ($scope -eq 'All') {
9696
Write-Host "Published $module module"
9797
}
9898
}
99-
} else {
99+
} elseif ($scope -ne 'AzureRM') {
100100
$modulePath = Join-Path $resourceManagerRootFolder "AzureRM.$scope"
101101
if (Test-Path $modulePath) {
102102
Write-Host "Publishing $scope module from $modulePath"

0 commit comments

Comments
 (0)