Skip to content

Commit 044fa13

Browse files
committed
fix
1 parent 2a61265 commit 044fa13

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/scripts/ensure-clean-working-tree.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@
1414
# limitations under the License.
1515

1616

17-
if [ "$(git status --short)" ]
18-
then
17+
if ! git diff-index --quiet HEAD --; then
1918
echo "Unclean git status"
2019
git status --long
2120
exit 1
22-
else
21+
else
2322
echo "Git status is clean"
2423
exit 0
2524
fi

0 commit comments

Comments
 (0)