fix extension filter

This commit is contained in:
OCram85 2019-04-03 13:37:46 +02:00
parent e547db8cf7
commit 84a89eb640

View File

@ -96,7 +96,7 @@ function New-CredentialStore {
}
Write-Error @ErrorParams
}
elseif ( ($null -eq $Path.Extension) -or ($Path.Extension -ne '*.json')) {
elseif ( ($null -eq $Path.Extension) -or ($Path.Extension -ne '.json')) {
$ErrorParams = @{
ErrorAction = 'Stop'
Exception = [System.IO.InvalidDataException]::new(