Browse Source

$TRAVIS_COMMIT --> $TRAVIS_COMMIT_MESSAGE

was incorrectly set in #989
Artur Paikin 6 năm trước cách đây
mục cha
commit
841bb97622
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      bin/upload-to-cdn.sh

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

@@ -44,8 +44,8 @@ pushd "${__root}" > /dev/null 2>&1
       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" =~ ^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}')"
+    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}')"
       exit 0
     fi
   fi