Fix local vars bashisms that are not defined in posix #168
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check for bashisms | |
on: | |
# push: | |
# paths: | |
# - tabs/** | |
# branches: [ "main" ] | |
pull_request: | |
paths: | |
- tabs/** | |
merge_group: | |
workflow_dispatch: | |
jobs: | |
check-bashisms: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: git fetch origin ${{ github.base_ref }} | |
- name: Install devscripts | |
run: sudo apt-get update && sudo apt-get install devscripts | |
- name: Check for bashisms in changed files | |
run: | | |
for file in $(git diff --name-only origin/${{ github.base_ref }} HEAD tabs); do | |
if [[ "$file" == *.sh ]]; then | |
checkbashisms "$file" | |
fi | |
done |