Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #36 from miketheitguy/master
Browse files Browse the repository at this point in the history
Fix PS version check
  • Loading branch information
devblackops authored Feb 15, 2019
2 parents 0bc93ef + b43a155 commit 9fd0e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OperationValidation/Public/Get-OperationValidation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function Get-OperationValidation {

# Some OVF modules might not have a manifest (.psd1) file.
if ($manifestFile) {
if ($PSVersionTable.PSVersion -ge 5) {
if ($PSVersionTable.PSVersion.Major -ge 5) {
$manifest = Import-PowerShellDataFile -Path $manifestFile.FullName
} else {
$manifest = Parse-Psd1 $manifestFile.FullName
Expand Down

0 comments on commit 9fd0e83

Please sign in to comment.