Skip to content

Commit 9761df1

Browse files
author
Gardener
committed
fix check-generate script
1 parent da64fcb commit 9761df1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hack/check-generate.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ if which git &>/dev/null; then
6868

6969
old_status="$(git status -s)"
7070

71-
if ! out=$(rm -rf hack/tools/bin/ 2>&1); then
71+
if ! out=$(rm -rf hack/tools/bin/* 2>&1); then
7272
echo "Error while cleaning hack/tools/bin/: $out"
7373
exit 1
7474
fi
@@ -81,6 +81,8 @@ if which git &>/dev/null; then
8181
fi
8282
new_status="$(git status -s)"
8383

84+
git diff
85+
8486
if [[ "$old_status" != "$new_status" ]]; then
8587
echo "make generate needs to be run:"
8688
echo "$new_status"

0 commit comments

Comments
 (0)