We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5056d79 commit 7b5584fCopy full SHA for 7b5584f
deploy.sh
@@ -1,7 +1,8 @@
1
#!/bin/bash
2
-if [ x${TRAVIS_PULL_REQUEST} != xfalse ]; then
+set -euxo pipefail
3
+if [ "x${TRAVIS_PULL_REQUEST}" != xfalse ]; then
4
echo "Building a pull request, so not deploying"
-elif [ x${TRAVIS_BRANCH} != xmaster ]; then
5
+elif [ "x${TRAVIS_BRANCH}" != xmaster ]; then
6
echo "On branch '$TRAVIS_BRANCH' which isn't master so not doing a deploy"
7
else
8
echo "Not a pull request, so deploying"
0 commit comments