diff options
| author | Tobias Bosch | 2014-03-20 14:28:01 -0700 |
|---|---|---|
| committer | Tobias Bosch | 2014-03-20 14:33:14 -0700 |
| commit | 86ab885fd960c5f48a5355c82dcf8e3bd7d1ab46 (patch) | |
| tree | 0c732aad6ef8dae5f234df1342330ea36ab76d98 | |
| parent | de07ddeac6b7cd39ffbfb8da310a7fea71861623 (diff) | |
| download | angular.js-86ab885fd960c5f48a5355c82dcf8e3bd7d1ab46.tar.bz2 | |
chore(release): fix angularjs.org cdn script
| -rwxr-xr-x | scripts/angularjs.org/publish.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/angularjs.org/publish.sh b/scripts/angularjs.org/publish.sh index 3d78dc01..1e59335d 100755 --- a/scripts/angularjs.org/publish.sh +++ b/scripts/angularjs.org/publish.sh @@ -16,7 +16,6 @@ function init { REPO_DIR=$TMP_DIR/angularjs.org BRANCH_PATTERN=$(readJsonProp "$BASE_DIR/package.json" "branchVersion") BUILD_DIR=$BASE_DIR/build - NEW_VERSION=$(cat $BUILD_DIR/version.txt) } function prepare { @@ -40,12 +39,12 @@ function prepare { # Replace the version of the branch that we are updating echo $BRANCH_PATTERN - echo $NEW_VERSION - replaceInFile "js/download-data.js" "branch:[ ]+'($BRANCH_PATTERN)',[ ]+version:[ ]+'$VERSION_REGEX'" "branch: '\1', version: '$NEW_VERSION'" - + echo $CDN_VERSION + replaceInFile "js/download-data.js" "branch:[ ]+'($BRANCH_PATTERN)',[ ]+version:[ ]+'$VERSION_REGEX'" "branch: '\1', version: '$CDN_VERSION'" + git add index.html git add js/download-data.js - git commit -m "update(version): update angular version to $NEW_VERSION for branch $BRANCH_PATTERN" + git commit -m "update(version): update angular version to $CDN_VERSION for branch $BRANCH_PATTERN" } function publish { |
