From 24e046fd6ae10026952d727ec9ff7158833ec1b1 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Tue, 30 Aug 2016 19:58:07 -0700 Subject: [PATCH] ci(publish): fix multiples umd files (#11179) --- scripts/publish/publish-build-artifacts.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/publish/publish-build-artifacts.sh b/scripts/publish/publish-build-artifacts.sh index d85dfe6732..b2c70e028e 100755 --- a/scripts/publish/publish-build-artifacts.sh +++ b/scripts/publish/publish-build-artifacts.sh @@ -31,9 +31,11 @@ function publishRepo { BUILD_VER="2.0.0-${SHORT_SHA}" if [[ ${TRAVIS} ]]; then find $REPO_DIR/ -type f -name package.json -print0 | xargs -0 sed -i "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g" - UMD=$(find $REPO_DIR/ -type f -name "*umd.js" -print0) + UMD=$(find $REPO_DIR/ -type f -name "*umd.js" -print) if [[ ${UMD} ]]; then - sed -i "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g" ${UMD} + for UMD_FILE in ${UMD}; do + sed -i "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g" ${UMD_FILE} + done fi else find $REPO_DIR/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g"