From 09e98c5fdfeb04f5c573e06eac790af6f26db1af Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Wed, 18 Dec 2024 05:44:40 -0600 Subject: [PATCH] Update ci_shellcheck.yml: Ignore SC2317 --- .github/workflows/ci_shellcheck.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_shellcheck.yml b/.github/workflows/ci_shellcheck.yml index 8da64c54a..17a21cf5c 100644 --- a/.github/workflows/ci_shellcheck.yml +++ b/.github/workflows/ci_shellcheck.yml @@ -17,15 +17,15 @@ jobs: # The type of runner that the job will run on runs-on: ubuntu-latest - # Steps represent a sequence of tasks that will be executed as part of the job + # "steps" represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - # Runs a set of commands using the runners shell + # Runs a set of commands using the runner's shell - name: check bash files run: | - # check bash files (bash -n, shellchecki -x) + # check bash files (bash -n, shellcheck -x) err=0 for i in $(find . -maxdepth 2 -name '*.sh'); do echo "==================== $i" @@ -58,8 +58,9 @@ jobs: #SC2069: Something about the order of >&2 and > xxx #SC2024: similar to SC2069 #SC2269: This variable is assigned to itself + #SC2317: Command appears to be unreachable ###shellcheck -x -e SC1090 -e SC1091 -e SC2004 -e SC2155 -e SC2181 -e SC2188 -e SC2024 -e SC2069 -e SC2269 $i || this_err=1 - shellcheck -x -e SC2004 -e SC2155 -e SC2181 -e SC2188 -e SC2024 -e SC2069 -e SC2269 $i || this_err=1 + shellcheck -x -e SC2004 -e SC2155 -e SC2181 -e SC2188 -e SC2024 -e SC2069 -e SC2269 -e SC2317 $i || this_err=1 ;; esac if [ ${this_err} -eq 1 ]; then