Fix up hypothesis uploader again

This commit is contained in:
Markus Unterwaditzer 2016-09-29 16:24:52 +02:00
parent 7df4333a77
commit 37ed28d849

View file

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -ex
GIT_COMMIT_PATH="$(dirname $0)/../.hypothesis/examples" GIT_COMMIT_PATH="$(dirname $0)/../.hypothesis/examples"
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
@ -7,7 +9,6 @@ if [ "$TRAVIS_PULL_REQUEST" = "false"]; then
exit 0 exit 0
fi fi
set -e
_is_dirty() { _is_dirty() {
(! git diff-index --quiet HEAD $GIT_COMMIT_PATH) || [ "$(git status --porcelain $GIT_COMMIT_PATH | tail -n1)" != "" ] (! git diff-index --quiet HEAD $GIT_COMMIT_PATH) || [ "$(git status --porcelain $GIT_COMMIT_PATH | tail -n1)" != "" ]