lts-check-last-commit.sh: Change condition

Run the build if the last build result is
not "SUCCESS"

Change-Id: Iefe647e5c78c451786daf99f0872b806dc1dbd7e
Signed-off-by: Arthur She <arthur.she@linaro.org>
diff --git a/scripts/lts-check-last-commit.sh b/scripts/lts-check-last-commit.sh
index cda4e34..02a8739 100755
--- a/scripts/lts-check-last-commit.sh
+++ b/scripts/lts-check-last-commit.sh
@@ -16,7 +16,7 @@
     last_build_ts=$((${last_build_ts}/1000))
     last_build_result=$(echo ${last_build} | jq -r '.result')
 
-    if [ "${FORCE_TO_BUILD}" = "true" -o "${last_build_result}" = "FAILURE" ]; then
+    if [ "${FORCE_TO_BUILD}" = "true" -o "${last_build_result}" != "SUCCESS" ]; then
         touch ${TO_BUILD_FILE}
     else
         for r in ${repos_to_check}