fix jq version replacement
This commit is contained in:
10
dist/azure/update-version.ps1
vendored
10
dist/azure/update-version.ps1
vendored
@@ -17,9 +17,9 @@ function update-task() {
|
|||||||
$patch
|
$patch
|
||||||
)
|
)
|
||||||
$file = Resolve-Path $file
|
$file = Resolve-Path $file
|
||||||
$jqMajor = '.version.Major=\"' + $major +'\"';
|
$jqMajor = '.version.Major="' + $major +'"';
|
||||||
$jqMinor = '.version.Minor=\"' + $minor +'\"';
|
$jqMinor = '.version.Minor="' + $minor +'"';
|
||||||
$jqPatch = '.version.Patch=\"' + $patch +'\"';
|
$jqPatch = '.version.Patch="' + $patch +'"';
|
||||||
Write-Host "Update task from $file to version $major.$minor.$patch"
|
Write-Host "Update task from $file to version $major.$minor.$patch"
|
||||||
|
|
||||||
Get-Content $file | jq $jqMajor | jq $jqMinor| jq $jqPatch | Set-Content $file
|
Get-Content $file | jq $jqMajor | jq $jqMinor| jq $jqPatch | Set-Content $file
|
||||||
@@ -36,8 +36,8 @@ function update-manifest() {
|
|||||||
$version
|
$version
|
||||||
)
|
)
|
||||||
$file = Resolve-Path $file
|
$file = Resolve-Path $file
|
||||||
$jqVersion = '.version=\"' + $version +'\"';
|
$jqVersion = '.version="' + $version +'"';
|
||||||
Write-Host "Update manifest version to $version"
|
Write-Host "Update manifest version to $version"
|
||||||
|
|
||||||
Get-Content $file | jq $jqVersion | Set-Content $file
|
Get-Content $file | jq $jqVersion | Set-Content $file
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user