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

2
package-lock.json generated
View File

@@ -6,7 +6,7 @@
"packages": {
"": {
"name": "privacy.sexy",
"version": "0.11.1",
"version": "0.11.2",
"hasInstallScript": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.36",

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