Skip to content

Commit

Permalink
do over to include sbourdeaud module
Browse files Browse the repository at this point in the history
  • Loading branch information
nx-sbourdeaud committed Apr 2, 2020
1 parent 7b4441a commit b2b873c
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 322 deletions.
3 changes: 2 additions & 1 deletion ahv/add-AhvNetwork.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ if (!(Get-Module -Name sbourdeaud)) {
}#end catch
}#end catch
}#endif module sbourdeaud
if (((Get-Module -Name sbourdeaud).Version.Major -le 3) -and ((Get-Module -Name sbourdeaud).Version.Minor -le 1)) {
$MyVarModuleVersion = Get-Module -Name sbourdeaud | Select-Object -Property Version
if (($MyVarModuleVersion.Version.Major -lt 3) -or (($MyVarModuleVersion.Version.Major -eq 3) -and ($MyVarModuleVersion.Version.Minor -eq 0) -and ($MyVarModuleVersion.Version.Build -lt 1))) {
Write-Host "$(get-date) [INFO] Updating module 'sbourdeaud'..." -ForegroundColor Green
try {Update-Module -Name sbourdeaud -Scope CurrentUser -ErrorAction Stop}
catch {throw "$(get-date) [ERROR] Could not update module 'sbourdeaud': $($_.Exception.Message)"}
Expand Down
Loading

0 comments on commit b2b873c

Please sign in to comment.