Skip to content

Commit

Permalink
Fix git diff command in repo linter (sindresorhus#2003)
Browse files Browse the repository at this point in the history
  • Loading branch information
RayBB authored May 2, 2021
1 parent 7597b90 commit 9c7a5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/repo_linter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Find the repo in the git diff and then set it to an env variables.
REPO_TO_LINT=$(
git diff main readme.md |
git diff main -- readme.md |
# Look for changes (indicated by lines starting with +).
grep ^+ |
# Get the line that includes the readme.
Expand Down

0 comments on commit 9c7a5d0

Please sign in to comment.