From 80c69d57f89dddd3b3f91ed7bc52247bd8ecebda Mon Sep 17 00:00:00 2001 From: abdelDriowya <111757332+abdelDriowya@users.noreply.github.com> Date: Thu, 5 Oct 2023 17:39:12 +0200 Subject: [PATCH] fix file encoding --- chocolatey/update-version.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chocolatey/update-version.ps1 b/chocolatey/update-version.ps1 index 4010cceb2..83767e941 100644 --- a/chocolatey/update-version.ps1 +++ b/chocolatey/update-version.ps1 @@ -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