Skip to content

Commit

Permalink
fix: skip deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleTryon committed Aug 11, 2023
1 parent 7df71e9 commit 2d21d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ elif [ "$VALE_ENUM_STRATEGY" = "modified" ]; then
command -v git > /dev/null 2>&1 || { apk add git; }

echo "Checking for modified files..."
modified_files="$(git diff --name-only "$VALE_STR_REFERENCE_BRANCH")"
modified_files="$(git diff --name-only --diff-filter=d "$VALE_STR_REFERENCE_BRANCH")"
echo "$modified_files"

modified_files_space_separated=$(echo "$modified_files" | tr '\n' ' ')
Expand Down

0 comments on commit 2d21d06

Please sign in to comment.