We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 125b94a commit 27f3e29Copy full SHA for 27f3e29
build-support/preview_docs.sh
@@ -11,10 +11,7 @@ git diff main docs/ > "${DIFF_FILE}"
11
12
cd ../pantsbuild.org
13
14
-if [[ $(git diff --stat) != '' ]]; then
15
- echo "Expected clean git state in the pantsbuild/pantsbuild.org repo"
16
- exit 1
17
-fi
+git diff --stat --exit-code > /dev/null || (echo "Expected clean git state in the pantsbuild/pantsbuild.org repo" && exit 1)
18
19
git checkout main
20
0 commit comments