Skip to content

Commit

Permalink
fix jq version replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Feb 7, 2024
1 parent 2c1dea9 commit 2f9911e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dist/azure/update-version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ function update-task() {
$patch
)
$file = Resolve-Path $file
$jqMajor = '.version.Major=\"' + $major +'\"';
$jqMinor = '.version.Minor=\"' + $minor +'\"';
$jqPatch = '.version.Patch=\"' + $patch +'\"';
$jqMajor = '.version.Major="' + $major +'"';
$jqMinor = '.version.Minor="' + $minor +'"';
$jqPatch = '.version.Patch="' + $patch +'"';
Write-Host "Update task from $file to version $major.$minor.$patch"

Get-Content $file | jq $jqMajor | jq $jqMinor| jq $jqPatch | Set-Content $file
Expand All @@ -36,8 +36,8 @@ function update-manifest() {
$version
)
$file = Resolve-Path $file
$jqVersion = '.version=\"' + $version +'\"';
$jqVersion = '.version="' + $version +'"';
Write-Host "Update manifest version to $version"

Get-Content $file | jq $jqVersion | Set-Content $file
}
}

0 comments on commit 2f9911e

Please sign in to comment.