Replaces canBuild variable with multi-part if-statement.
@@ -20,12 +20,11 @@ echo -e "Branch:"
echo -e "\tExpected:false"
echo -e "\tActual:$TRAVIS_BRANCH\n"
-canBuild=$(expr "$TRAVIS_REPO_SLUG" = "Valkryst/VTerminal")
-canBuild=$(expr $(expr "$TRAVIS_JDK_VERSION" = "oraclejdk8") & "$canBuild")
-canBuild=$(expr $(expr "$TRAVIS_PULL_REQUEST" = "false") & "$canBuild")
-canBuild=$(expr $(expr "$TRAVIS_BRANCH" = "master") & "$canBuild")
+if ["$TRAVIS_REPO_SLUG" == "Valkryst/VTerminal"] &&
+ ["$TRAVIS_JDK_VERSION" == "oraclejdk8"] &&
+ ["$TRAVIS_PULL_REQUEST" == "false"] &&
+ ["$TRAVIS_BRANCH" == "master"]; then
-if ["$canBuild" == "1"]; then
echo -e "Publishing JavaDoc...\n"
cp -R /home/travis/build/Valkryst/VTerminal/target/site/apidocs/ $HOME/javadoc-latest
