From b4beeee47df98dccfcbd81f9f841824f6191dda5 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Wed, 28 Jan 2015 11:19:33 +0900 Subject: [PATCH] fix for when no value is set --- travis.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/travis.sh b/travis.sh index d8f1debf7..dd8b7a405 100755 --- a/travis.sh +++ b/travis.sh @@ -2,7 +2,7 @@ set -x -if [ $ROS_DISTRO == "indigo" -a "$TRAVIS_JOB_ID" ]; then +if [ "$ROS_DISTRO" == "indigo" -a "$TRAVIS_JOB_ID" ]; then sudo apt-get install -qq -y python-jenkins ./.travis/travis_jenkins.py exit $? @@ -15,8 +15,8 @@ function error { exit 1 } -[ $BUILDER == rosbuild ] && ( echo "$BUILDER is no longer supported"; exit 1; ) -[ $ROSWS == rosws ] && ( echo "$ROSWS is no longer supported"; exit 1; ) +[ "$BUILDER" == rosbuild ] && ( echo "$BUILDER is no longer supported"; exit 1; ) +[ "$ROSWS" == rosws ] && ( echo "$ROSWS is no longer supported"; exit 1; ) trap error ERR