File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Function Get-PhpManagerConfigurationKey
31
31
If ($folder ) {
32
32
$path = Join-Path - Path $folder - ChildPath ' phpmanager.json'
33
33
If (Test-Path - PathType Leaf - LiteralPath $path ) {
34
- $content = @ (Get-Content - LiteralPath $path ) -join ' '
34
+ $content = @ (Get-Content - LiteralPath $path ) -join " `n "
35
35
$json = ConvertFrom-Json - InputObject $content
36
36
If ($json.PSobject.Properties.name -eq $Key ) {
37
37
$result = $json .$Key
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ Function Set-PhpManagerConfigurationKey
39
39
$path = Join-Path - Path $folder - ChildPath ' phpmanager.json'
40
40
$json = $null
41
41
If (Test-Path - PathType Leaf - LiteralPath $path ) {
42
- $json = Get-Content - LiteralPath $path | ConvertFrom-Json
42
+ $content = @ (Get-Content - LiteralPath $path ) -join " `n "
43
+ $json = ConvertFrom-Json - InputObject $content
43
44
}
44
45
If (-Not ($json )) {
45
46
$json = New-Object - TypeName PSCustomObject
You can’t perform that action at this time.
0 commit comments