Pārlūkot izejas kodu

Would this fix uploadcdn?

Renée Kooi 6 gadi atpakaļ
vecāks
revīzija
f5bde1096c
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      bin/upload-to-cdn.sh

+ 2 - 2
bin/upload-to-cdn.sh

@@ -39,13 +39,13 @@ function fatal () {
 }
 
 pushd "${__root}" > /dev/null 2>&1
-  if [ "${TRAVIS:-}" = "true" ]; then
+  if [ -n "${TRAVIS:-}" ]; then
     if [ "${TRAVIS_PULL_REQUEST:-}" != "false" ]; then
       echo "On Travis (TRAVIS is '${TRAVIS}'), I'm not pushing releases to the CDN for pull requests (TRAVIS_PULL_REQUEST is '${TRAVIS_PULL_REQUEST}')"
       exit 0
     fi
     if [[ ! "$TRAVIS_COMMIT_MESSAGE" =~ ^Release* ]]; then
-      echo "On Travis (TRAVIS is '${TRAVIS}'), I'm not pushing releases to the CDN unless commit message starts with 'Release' (TRAVIS_COMMIT is '${TRAVIS_COMMIT_MESSAGE}')"
+      echo "On Travis (TRAVIS is '${TRAVIS}'), I'm not pushing releases to the CDN unless commit message starts with 'Release' (TRAVIS_COMMIT_MESSAGE is '${TRAVIS_COMMIT_MESSAGE}')"
       exit 0
     fi
   fi