1 #!/bin/bash 2 3 git diff --no-patch --exit-code HEAD 4 5 if [ ! $? -eq 0 ]; then 6 echo "" 1>&2 7 echo "***********************************************************************" 1>&2 8 echo " There are uncommitted changes which will not be part of the tarball " 1>&2 9 echo "***********************************************************************" 1>&2 10 echo "" 1>&2 11 12 if [ "$SKIP_COMMIT_TEST" = "1" ]; then 13 echo "(Failed commit test skipped due to SKIP_COMMIT_TEST=1 being set.)" 1>&2 14 exit 0 15 else 16 echo "(This test can be skipped when SKIP_COMMIT_TEST=1 is set.)" 1>&2 17 fi 18 exit 1 19 fi