From 84a89eb64041de7ce7e5f7c3ef0ff5610520bd01 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 3 Apr 2019 13:37:46 +0200 Subject: [PATCH] fix extension filter --- src/Store/New-CredentialStore.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Store/New-CredentialStore.ps1 b/src/Store/New-CredentialStore.ps1 index d932db6..f166181 100644 --- a/src/Store/New-CredentialStore.ps1 +++ b/src/Store/New-CredentialStore.ps1 @@ -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(