Skip to content

Commit

Permalink
Remove hardcoded repository name
Browse files Browse the repository at this point in the history
  • Loading branch information
pkernevez committed Nov 23, 2023
1 parent f7f886e commit a4348d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -4063,8 +4063,8 @@ function Test-M365DSCModuleValidity

$InformationPreference = 'Continue'

# validate only one installation of the module is present (and it's the latest version available from the psgallery)
$latestVersion = (Find-Module -Name 'Microsoft365DSC' -Repository 'PSGallery' -Includes 'DSCResource').Version
# validate only one installation of the module is present (and it's the latest version available)
$latestVersion = (Find-Module -Name 'Microsoft365DSC' -Includes 'DSCResource').Version
$localVersion = (Get-Module -Name 'Microsoft365DSC').Version

if ($latestVersion -gt $localVersion)
Expand Down

0 comments on commit a4348d0

Please sign in to comment.