Fixed the CI to only check files that exist (#554)

This commit is contained in:
Adam Perkowski 2024-09-20 04:17:55 +02:00 committed by GitHub
parent ef9307dd83
commit 77f8085e2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ jobs:
- name: Check for bashisms in changed files - name: Check for bashisms in changed files
run: | run: |
for file in $(git diff --name-only origin/${{ github.base_ref }} HEAD core/tabs); do 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" checkbashisms "$file"
fi fi
done done