From d51c1fd15e6f0a5e9cb2f437fcc0e0e5612d2363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steven!=20Ragnar=C3=B6k?= Date: Mon, 10 May 2021 15:48:53 -0700 Subject: [PATCH] Fix script error introduced in #2330 (#2335) `local` in bash can only be used within a function context. --- .circleci/config.yml | 2 +- tools/code_coverage_report.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e62a1146c1..81bc16fcd1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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" \ diff --git a/tools/code_coverage_report.bash b/tools/code_coverage_report.bash index fe27717b0b..e836a3ed94 100755 --- a/tools/code_coverage_report.bash +++ b/tools/code_coverage_report.bash @@ -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 \