File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 109109 # IconUri = ''
110110
111111 # ReleaseNotes of this module
112- ReleaseNotes = ' * Fix wildcard error in Install-AzModule
113- * Fix syntax errors in Windows Powershell'
112+ ReleaseNotes = ' * Fix bugs for Install-AzModule
113+ * Fix syntax errors when run in Windows Powershell'
114114
115115 # Prerelease string of this module
116116 # Prerelease = ''
Original file line number Diff line number Diff line change @@ -257,6 +257,9 @@ function Install-AzModule {
257257 $parameter.Add (' RequiredVersion' , $module [' Az.Accounts' ])
258258 $module.Remove (' Az.Accounts' )
259259 }
260+ if ($RemovePrevious ) {
261+ Uninstall-Module - Name Az.Accounts - AllVersion - ErrorAction SilentlyContinue
262+ }
260263 Install-Module @parameter
261264
262265 $module.Keys | Foreach-Object {
You can’t perform that action at this time.
0 commit comments