Skip to content
Snippets Groups Projects
Unverified Commit d51c1fd1 authored by Steven! Ragnarök's avatar Steven! Ragnarök Committed by GitHub
Browse files

Fix script error introduced in #2330 (#2335)

`local` in bash can only be used within a function context.
parent 25fe2448
No related branches found
No related tags found
No related merge requests found
......@@ -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" \
......
......@@ -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 \
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment