Invoke-PSRule -InputPath
treats input as file unless it ends with [System.IO.Path]::DirectorySeparatorChar
#1842
Labels
Milestone
Description of the issue
Invoke-PSRule -InputPath
seems to treat input as file unless it ends with[System.IO.Path]::DirectorySeparatorChar
.To Reproduce
Inside
C:\Users\olav.birkeland\some\directory
I have two Bicep compiled files:main.bicep
prod.bicepparam
Gives
DEBUG: Target failed If precondition
. Without debug it gives no output. While:gives
Expected behaviour
Detect whether
-InputPath
is a file or a directory. For instance[System.IO.File]::Exist('C:\Users\olav.birkeland\some\directory')
returns$false
.Error output
Module in use and version:
Captured output from
$PSVersionTable
:Additional context
The text was updated successfully, but these errors were encountered: