We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6740c50 commit 15499baCopy full SHA for 15499ba
test.sh
@@ -49,9 +49,11 @@ if [[ ! -z ${files} ]]; then
49
exit 1
50
fi
51
52
-# Check gazelle
53
-bazel run //:gazelle
54
-if [ "$(git status --porcelain)" ]; then
55
- echo "BUILD files out of date. Run `bazel run //:gazelle` to update them."
56
- exit 1
+if [ ! "$(git status --porcelain)" ]; then
+ # Check gazelle if everything is up to date.
+ bazel run //:gazelle
+ if [ "$(git status --porcelain)" ]; then
+ echo "BUILD files out of date. Run `bazel run //:gazelle` to update them."
57
+ exit 1
58
+ fi
59
0 commit comments