Skip to content

Commit

Permalink
Merge pull request #71 from reviewdog/skip-empty
Browse files Browse the repository at this point in the history
fix: skip empty files
  • Loading branch information
haya14busa authored Jan 22, 2025
2 parents c3b05d4 + 3147a95 commit c5f7828
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ IFS=$(echo -en "\n\b")
run_langtool() {
for FILE in ${FILES}; do
echo "Checking ${FILE}..." >&2
# Skip empty files
if [ ! -s "${FILE}" ]; then
echo "Skipping empty file: ${FILE}" >&2
continue
fi
curl --silent \
--request POST \
--data "${DATA}" \
Expand Down

0 comments on commit c5f7828

Please sign in to comment.