Fix error using travis-ci api [ci skip]

This commit is contained in:
Manuel de Brito Fontes 2017-10-26 12:57:19 -03:00
parent 18cc2d1d1d
commit e25eed5644

View file

@ -15,14 +15,14 @@
# limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
echo "TRAVIS_REPO_SLUG: $TRAVIS_REPO_SLUG"
echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST"
echo "TRAVIS_EVENT_TYPE: $TRAVIS_EVENT_TYPE"
echo "TRAVIS_PULL_REQUEST_BRANCH: $TRAVIS_PULL_REQUEST_BRANCH"
set -x
fi
set -o errexit
set -o nounset
set -o pipefail
@ -66,7 +66,7 @@ then
exit 0;
fi
if [ "$TRAVIS_PULL_REQUEST_BRANCH" != "master" ];
if [ "$TRAVIS_PULL_REQUEST_BRANCH" != "" ];
then
echo "Only images build from master branch are allowed. $SKIP_MESSAGE";
exit 0;