Skip to content

Commit

Permalink
Fix script error introduced in #2330 (#2335)
Browse files Browse the repository at this point in the history
`local` in bash can only be used within a function context.
  • Loading branch information
nuclearsandwich authored May 10, 2021
1 parent 25fe244 commit d51c1fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ _steps:
working_directory: /opt/overlay_ws
command: |
curl -s https://codecov.io/bash > codecov
local codecov_version=$(grep -o 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2)
codecov_version=$(grep -o 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2)
shasum -a 512 -c <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${codecov_version}/SHA512SUM" | grep -w "codecov")
bash codecov \
-f "lcov/project_coverage.info" \
Expand Down
2 changes: 1 addition & 1 deletion tools/code_coverage_report.bash
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ lcov \

if [ $COVERAGE_REPORT_VIEW = codecovio ]; then
curl -s https://codecov.io/bash > codecov
local codecov_version=$(grep -o 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2)
codecov_version=$(grep -o 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2)
shasum -a 512 -c <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${codecov_version}/SHA512SUM" | grep -w "codecov")
bash codecov \
-f ${LCOVDIR}/project_coverage.info \
Expand Down

0 comments on commit d51c1fd

Please sign in to comment.