Skip to content

Commit c5f7828

Browse files
authored
Merge pull request #71 from reviewdog/skip-empty
fix: skip empty files
2 parents c3b05d4 + 3147a95 commit c5f7828

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

entrypoint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ IFS=$(echo -en "\n\b")
4646
run_langtool() {
4747
for FILE in ${FILES}; do
4848
echo "Checking ${FILE}..." >&2
49+
# Skip empty files
50+
if [ ! -s "${FILE}" ]; then
51+
echo "Skipping empty file: ${FILE}" >&2
52+
continue
53+
fi
4954
curl --silent \
5055
--request POST \
5156
--data "${DATA}" \

0 commit comments

Comments
 (0)