fix extension filter
This commit is contained in:
parent
e547db8cf7
commit
84a89eb640
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user