nvs@1.6.0: Use call operator instead of powershell cli (#3351)

* nvs@1.6.0: Use call operator instead of powershell cli

Closes #3350

* Quote nvs path in post install

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
This commit is contained in:
Segev Finer 2022-03-04 22:44:19 +02:00 committed by GitHub
parent 39cd3a6291
commit 97965463d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@
"NVS_HOME": "$dir\\nodejs" "NVS_HOME": "$dir\\nodejs"
}, },
"post_install": [ "post_install": [
"powershell -NoProfile -File $dir\\nvs.ps1 remote | Out-Null", "& \"$dir\\nvs.ps1\" remote | Out-Null",
"$CONF = (Get-Content \"$persist_dir\\nodejs\\settings.json\") | ConvertFrom-Json", "$CONF = (Get-Content \"$persist_dir\\nodejs\\settings.json\") | ConvertFrom-Json",
"Add-Member -NotePropertyName linkToSystem -NotePropertyValue $false -Force -InputObject $CONF", "Add-Member -NotePropertyName linkToSystem -NotePropertyValue $false -Force -InputObject $CONF",
"ConvertTo-Json $CONF | Out-File -encoding \"ASCII\" \"$persist_dir\\nodejs\\settings.json\"" "ConvertTo-Json $CONF | Out-File -encoding \"ASCII\" \"$persist_dir\\nodejs\\settings.json\""