We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9796579 commit 24e046fCopy full SHA for 24e046f
1 file changed
scripts/publish/publish-build-artifacts.sh
@@ -31,9 +31,11 @@ function publishRepo {
31
BUILD_VER="2.0.0-${SHORT_SHA}"
32
if [[ ${TRAVIS} ]]; then
33
find $REPO_DIR/ -type f -name package.json -print0 | xargs -0 sed -i "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g"
34
- UMD=$(find $REPO_DIR/ -type f -name "*umd.js" -print0)
+ UMD=$(find $REPO_DIR/ -type f -name "*umd.js" -print)
35
if [[ ${UMD} ]]; then
36
- sed -i "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g" ${UMD}
+ for UMD_FILE in ${UMD}; do
37
+ sed -i "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g" ${UMD_FILE}
38
+ done
39
fi
40
else
41
find $REPO_DIR/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g"
0 commit comments