summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTomáš Levora <t.levora@partner.samsung.com>2019-04-09 09:27:06 +0200
committerTomáš Levora <t.levora@partner.samsung.com>2019-04-09 09:29:49 +0200
commit504adc1446de664fc342560444554a84068e6818 (patch)
tree1ae0fb44039ac2035fd408efd95a57eb48f09ab2 /build
parent21c39f054da6f656719a9ae076d08f2363bf40aa (diff)
Fix patching registry in NPM
Fix URL in patching of registry in NPM package tsscmp-1.0.5.tgz Issue-ID: OOM-1787 Change-Id: I937b851edf0b09a1f43b309310ce21bf66a09b8b Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Diffstat (limited to 'build')
-rwxr-xr-xbuild/build_nexus_blob.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/build/build_nexus_blob.sh b/build/build_nexus_blob.sh
index e3651fb1..dc4b1dd3 100755
--- a/build/build_nexus_blob.sh
+++ b/build/build_nexus_blob.sh
@@ -266,8 +266,7 @@ EOF
pushd ${NXS_SRC_NPM_DIR}
tar xvzf tsscmp-1.0.5.tgz
rm -f tsscmp-1.0.5.tgz
-sed -i "s|https://registry.npmjs.org|http://${NEXUS_DOMAIN}:8081|g" package/package.json
-sed -i "s|https://nexus.onap-me.novalocal|http://${NEXUS_DOMAIN}:8081|g" package/package.json
+sed -i 's|\"registry\":\ \".*\"|\"registry\":\ \"'"${NPM_REGISTRY}"'\"|g' package/package.json
tar -zcvf tsscmp-1.0.5.tgz package
rm -rf package