Adds quotations around $canBuild.
@@ -23,11 +23,11 @@ echo -e "\tActual:$TRAVIS_BRANCH\n"
canBuild=$(expr "$TRAVIS_REPO_SLUG" = "Valkryst/VTerminal")
echo -e "canBuild:\t$canBuild"
echo -e "otherShit:\t$(expr "$TRAVIS_JDK_VERSION" = "oraclejdk8")"
-canBuild=$(expr $(expr "$TRAVIS_JDK_VERSION" = "oraclejdk8") & $canBuild)
-canBuild=$(expr $(expr "$TRAVIS_PULL_REQUEST" = "false") & $canBuild)
-canBuild=$(expr $(expr "$TRAVIS_BRANCH" = "master") & $canBuild)
+canBuild=$(expr $(expr "$TRAVIS_JDK_VERSION" = "oraclejdk8") & "$canBuild")
+canBuild=$(expr $(expr "$TRAVIS_PULL_REQUEST" = "false") & "$canBuild")
+canBuild=$(expr $(expr "$TRAVIS_BRANCH" = "master") & "$canBuild")
-if [canBuild == true]; then
+if [$expr("$canBuild" == "1")]; then
echo -e "Publishing JavaDoc...\n"
cp -R /home/travis/build/Valkryst/VTerminal/target/site/apidocs/ $HOME/javadoc-latest
