Skip to content

Commit

Permalink
Merge pull request #3938 from pkernevez/remove-hardcoded-repo-name
Browse files Browse the repository at this point in the history
Remove hardcoded repository name
  • Loading branch information
NikCharlebois authored Nov 27, 2023
2 parents 2b4b925 + a4348d0 commit 4a4380b
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 4a4380b

Please sign in to comment.