From 77f8085e2cf18e47c0708ef16a501c62cd499562 Mon Sep 17 00:00:00 2001 From: Adam Perkowski Date: Fri, 20 Sep 2024 04:17:55 +0200 Subject: [PATCH] Fixed the CI to only check files that exist (#554) --- .github/workflows/bashisms.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bashisms.yml b/.github/workflows/bashisms.yml index 4eb96249..16e8a015 100644 --- a/.github/workflows/bashisms.yml +++ b/.github/workflows/bashisms.yml @@ -25,7 +25,7 @@ jobs: - name: Check for bashisms in changed files run: | for file in $(git diff --name-only origin/${{ github.base_ref }} HEAD core/tabs); do - if [[ "$file" == *.sh ]]; then + if [[ "$file" == *.sh ]] && [[ -f "$file" ]];; then checkbashisms "$file" fi done