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": { "packages": {
"": { "": {
"name": "privacy.sexy", "name": "privacy.sexy",
"version": "0.11.1", "version": "0.11.2",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/fontawesome-svg-core": "^1.2.36",

View File

@@ -6410,9 +6410,9 @@ functions:
function: RunPowerShell function: RunPowerShell
parameters: parameters:
code: |- code: |-
$jsonfile = \"$env:APPDATA\Code\User\settings.json\" $jsonfile = "$env:APPDATA\Code\User\settings.json"
if (!(Test-Path $jsonfile -PathType Leaf)) { 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 exit 0
} }
$json = Get-Content $jsonfile | Out-String | ConvertFrom-Json $json = Get-Content $jsonfile | Out-String | ConvertFrom-Json