Skip to content

Commit

Permalink
fix: skip empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
nayanrajDQ committed Oct 21, 2024
1 parent 56b1c99 commit 04a846d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions axe-linter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ fi
for File in $Files; do
FileContents="$(cat "$File")"

if [ -z "$FileContents" ] || [ "$(echo "$FileContents" | tr -d '[:space:]')" = "" ]; then
echo "::debug::Skipping empty file $File"
continue
fi

RequestBody=$(
jq \
--null-input \
Expand Down

0 comments on commit 04a846d

Please sign in to comment.