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 109
109
# IconUri = ''
110
110
111
111
# 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'
114
114
115
115
# Prerelease string of this module
116
116
# Prerelease = ''
Original file line number Diff line number Diff line change @@ -257,6 +257,9 @@ function Install-AzModule {
257
257
$parameter.Add (' RequiredVersion' , $module [' Az.Accounts' ])
258
258
$module.Remove (' Az.Accounts' )
259
259
}
260
+ if ($RemovePrevious ) {
261
+ Uninstall-Module - Name Az.Accounts - AllVersion - ErrorAction SilentlyContinue
262
+ }
260
263
Install-Module @parameter
261
264
262
265
$module.Keys | Foreach-Object {
You can’t perform that action at this time.
0 commit comments