Attempting (again) to correct deploy.sh for owmeta
#!/bin/bash -xe
HEAD_REV=$(git rev-parse HEAD)
-git ls-remote origin refs/heads/dev | grep -q -E -o "^$HEAD_REV" || \
- echo "Not deploying since we aren't on the 'dev' branch" >&2 && \
- exit 0
+git ls-remote origin refs/heads/dev | grep -q -E "^$HEAD_REV" || \
+ ( echo "Not deploying since we aren't on the 'dev' branch" >&2 && \
+ exit 0 )
git log --format=%s -n 1 "$HEAD_REV" | grep -E -q '(^MINOR:)|(\[skip-deploy\])' && exit 0
