summaryrefslogtreecommitdiffstats
path: root/build/build_nexus_blob.sh
diff options
context:
space:
mode:
authorTomáš Levora <t.levora@partner.samsung.com>2019-08-27 14:16:07 +0200
committerTomáš Levora <t.levora@partner.samsung.com>2019-08-27 13:23:29 +0000
commit12fe944f132fef4cd899fd560c4abb09ab9c039d (patch)
treedd6e20227ce0dcc0dcd83b479b62d3017dd50e33 /build/build_nexus_blob.sh
parent0364bc6ebc6d26877f1db1be342a10b24f51d80b (diff)
Skip annoying message if config.json not exists
Preventing messages showing in case of non existing config.json file Issue-ID: OOM-2077 Change-Id: Ifb38495d93934b2015893d2c1fc62ec4d480171b Signed-off-by: Tomáš Levora <t.levora@partner.samsung.com>
Diffstat (limited to 'build/build_nexus_blob.sh')
-rwxr-xr-xbuild/build_nexus_blob.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/build_nexus_blob.sh b/build/build_nexus_blob.sh
index 58f0f83f..dff2fc8d 100755
--- a/build/build_nexus_blob.sh
+++ b/build/build_nexus_blob.sh
@@ -145,7 +145,7 @@ push_pip () {
docker_login () {
for REGISTRY in $(sed -n '/\.[^/].*\//p' ${1} | sed -e 's/\/.*$//' | sort -u | grep -v ${DEFAULT_REGISTRY}) ${DOCKER_REGISTRY}; do
- if ! grep -wq ${REGISTRY} ~/.docker/config.json; then
+ if ! grep -wqs ${REGISTRY} ~/.docker/config.json; then
echo "Docker login to ${REGISTRY}"
docker login -u "${NEXUS_USERNAME}" -p "${NEXUS_PASSWORD}" ${REGISTRY} > /dev/null
fi