Skip to content

Commit

Permalink
fixup! fixup! fixup! remove exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcharlton committed Feb 17, 2024
1 parent acf304c commit 4f99a35
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bin/diff-check
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ set -e

message="has changed"

git diff-index --quiet HEAD
changes=$?

if [ "$changes" -ne 0 ]; then
for n in $(git diff --name-only); do
if ! git diff-index --quiet HEAD; then
git diff --name-only | while read -r n ; do
echo "::error file=$n::$n $message"
done

Expand Down

0 comments on commit 4f99a35

Please sign in to comment.