Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/aomp-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
- name: Run shellcheck
run: |
shellcheck_status=0
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
if [[ $file == *.sh ]] || [[ $(file "$file") =~ "shell script" ]]; then
while read -r file; do
if [[ "$file" == *.sh ]] || [[ $(file "$file") =~ "shell script" ]]; then
file_dir=$(dirname "$file")
file_name=$(basename "$file")

Expand All @@ -43,6 +43,6 @@ jobs:

popd || exit 1
fi
done
done <<< "${{ steps.changed-files.outputs.all_changed_files }}"
exit $shellcheck_status
shell: bash {0}