Skip to content

Commit

Permalink
fix file encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelDriowya committed Oct 5, 2023
1 parent 695805d commit 80c69d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chocolatey/update-version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Write-Verbose "getting checksum from $checksumURL to $tmpFile"
### replace hash
$hash = (Get-Content $tmpFile | where {$_ -like "*windows_amd64.zip"}).split(" ")[0]
$installerPath = ".\circleci-cli\tools\chocolateyinstall.ps1"
(Get-Content $installerPath).Replace('$HASH',$hash) | Out-File $installerPath -Force
(Get-Content $installerPath).Replace('$HASH',$hash) | Out-File $installerPath -Force -Encoding ASCII

$downloadURL = "https://github.com/CircleCI-Public/circleci-cli/releases/download/v$curVersion/circleci-cli_$($curVersion)_windows_amd64.zip"
(Get-Content $installerPath).Replace('$DOWNLOAD_URL',$downloadURL) | Out-File $installerPath -Force
(Get-Content $installerPath).Replace('$DOWNLOAD_URL',$downloadURL) | Out-File $installerPath -Force -Encoding ASCII

$nuspecPath = "./circleci-cli/circleci-cli.nuspec"
(Get-Content $nuspecPath).Replace('$VER',$curVersion) | Out-File $nuspecPath -Force
(Get-Content $nuspecPath).Replace('$VER',$curVersion) | Out-File $nuspecPath -Force -Encoding ASCII

0 comments on commit 80c69d5

Please sign in to comment.