Minor updates to Ini scripts
- Allow files ending in .conf in addition to .ini - Space out values for readability in final output
This commit is contained in:
@@ -59,7 +59,8 @@ function Get-IniContent
|
||||
param(
|
||||
[Parameter(ValueFromPipeline=$True, Mandatory=$True)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[ValidateScript({ (Test-Path $_) -and ($_.Extension -eq '.ini') })]
|
||||
[ValidateScript({ (Test-Path $_) -and `
|
||||
('.ini', '.conf' -contains $_.Extension) })]
|
||||
[IO.FileInfo]
|
||||
$Path
|
||||
)
|
||||
|
Reference in New Issue
Block a user