Skip to content

Commit

Permalink
Execute test: Add code to find files
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmachos committed May 5, 2024
1 parent e591d9e commit a91c84a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/Shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ jobs:
declare -a ERRORS
declare -a FILES
while IFS=$'\n' read -r file; do
FILES+=("${file}");
done < <(/usr/bin/find "${{ github.workspace }} -maxdepth 1 -type f \
-not -iwholename '*.git*' \
-not -iwholename '*venv*' \
-not -iwholename '*.tar.xz' \
| /usr/bin/sort -u)
for file in "${FILES[@]}"; do
if /usr/bin/file "${file}" | /usr/bin/grep --quiet "shell" || \
/usr/bin/file "${file}" | /usr/bin/grep --quiet "bash" || \
Expand Down

0 comments on commit a91c84a

Please sign in to comment.