From 8eae9be82daffba793d2df1bc66d26fed3004d8e Mon Sep 17 00:00:00 2001 From: Ed Gillett <146008263+mo-gill@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:48:17 +0100 Subject: [PATCH] #3571: Modify shellcheck test. --- .github/workflows/rtw-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rtw-tests.yml b/.github/workflows/rtw-tests.yml index e2cf979b42..47431648fb 100644 --- a/.github/workflows/rtw-tests.yml +++ b/.github/workflows/rtw-tests.yml @@ -82,5 +82,5 @@ jobs: - name: Lint shell scripts in Recipe Test Worklow with ShellCheck run: | cd esmvaltool/utils/recipe_test_workflow - find . -name "*.sh" -exec shellcheck {} \; + output=$(find . -name "*.sh" -exec shellcheck {} \;) if [ "$output" ]; then exit 1; else exit 0; fi