Skip to content

Commit deac2ee

Browse files
committed
in case of changes set rc to 0 as the return value to make
1 parent 777f227 commit deac2ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/make.sh

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ function check_generate() {
116116

117117
if [[ $rc -ne 0 ]]; then
118118
echo '"make generate" creates a diff, run "make generate" and commit the results'
119+
rc=0
119120
fi
120121
rm -rf "$TMPDIR"
121122
git worktree prune >/dev/null
@@ -137,6 +138,7 @@ function check_generate_docs() {
137138

138139
if [[ $rc -ne 0 ]]; then
139140
echo '"make generate_docs" creates a diff, run "make generate_docs" and commit the results'
141+
rc=0
140142
fi
141143
rm -rf "$TMPDIR"
142144
git worktree prune >/dev/null

0 commit comments

Comments
 (0)