Permalink
Browse files

Fixed git status check

  • Loading branch information...
1 parent f1efc76 commit 253feb3f55b7931b012f2cc8fdda9d7ea483925f @bitwiseman bitwiseman committed Jan 1, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/git-status-clear.sh
@@ -1,7 +1,7 @@
echo "Post-build git status check..."
echo "Ensuring no changes visible to git have been made to '$*' ..."
-git status $* | grep 'nothing to commit.*working directory clean' || {
+git status $* | egrep -q 'nothing to commit.*working (directory|tree) clean' || {
# we should find nothing to commit. If we don't, build has failed.
echo "ERROR: Post-build git status check - FAILED."
echo "Git status reported changes to non-git-ignore'd files."

0 comments on commit 253feb3

Please sign in to comment.