File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ runs:
120
120
cd ~/bin/
121
121
122
122
# Determine which version of coverage-reporter to download
123
- if [ "$COVERAGE_REPORTER_VERSION" == "latest" ]; then
123
+ if [ -z "$COVERAGE_REPORTER_VERSION" ] || [ "$COVERAGE_REPORTER_VERSION" == "latest" ]; then
124
124
asset_path="latest/download"
125
125
else
126
126
asset_path="download/${COVERAGE_REPORTER_VERSION}"
@@ -167,7 +167,7 @@ runs:
167
167
# Try to download the binary and checksum file
168
168
New-Item -Path $env:HOME\bin -ItemType directory -Force
169
169
Push-Location $env:HOME\bin
170
- if( $env:COVERAGE_REPORTER_VERSION -eq "latest") {
170
+ if ([string]::IsNullOrEmpty($env:COVERAGE_REPORTER_VERSION) -or $env:COVERAGE_REPORTER_VERSION -eq "latest") {
171
171
Invoke-WebRequest -Uri "https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.exe" -OutFile "coveralls.exe"
172
172
Invoke-WebRequest -Uri "https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt" -OutFile "sha256sums.txt"
173
173
} else {
You can’t perform that action at this time.
0 commit comments