Fix double backlashes in Windows vscode scripts

This commit is contained in:
undergroundwires
2021-12-06 20:07:16 +01:00
parent 17b334aaad
commit 5f091bb6ab
2 changed files with 3 additions and 3 deletions

View File

@@ -6410,9 +6410,9 @@ functions:
function: RunPowerShell
parameters:
code: |-
$jsonfile = \"$env:APPDATA\Code\User\settings.json\"
$jsonfile = "$env:APPDATA\Code\User\settings.json"
if (!(Test-Path $jsonfile -PathType Leaf)) {
Write-Host \"No updates. Settings file was not at $jsonfile\"
Write-Host "No updates. Settings file was not at $jsonfile"
exit 0
}
$json = Get-Content $jsonfile | Out-String | ConvertFrom-Json