ci: Fix TravisCI script

Change-Id: Ic5d725eb825b7db71735f865852685830dacfffd
Refs: #3041
diff --git a/.travis.yml b/.travis.yml
index 6156def..7f40779 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,7 +9,7 @@
     on_success: always
     on_failure: always
 script:
-  - [[ $TRAVIS_OS_NAME == linux ]] && export NODE_LABELS="Linux Ubuntu Ubuntu-12.04"
-  - [[ $TRAVIS_OS_NAME == osx ]] && export NODE_LABELS="OSX OSX-10.10"
+  - if [[ $TRAVIS_OS_NAME == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-12.04"; fi
+  - if [[ $TRAVIS_OS_NAME == osx ]]; then export NODE_LABELS="OSX OSX-10.10"; fi
   - echo $NODE_LABELS
   - ./.jenkins