diff options
author | Michal Zegan <m.zegan@samsung.com> | 2019-09-04 10:45:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-09-04 10:45:25 +0000 |
commit | a16fa6022a3bc2bf3a906a722f6fed6c74e5fd88 (patch) | |
tree | c10749b7e8efdf1e9f3fa2894e55b10c058e50ba /build | |
parent | d761d32ea7c87b47f25398afa9ac4e86b43e82bc (diff) | |
parent | 12fe944f132fef4cd899fd560c4abb09ab9c039d (diff) |
Merge "Skip annoying message if config.json not exists"
Diffstat (limited to 'build')
-rwxr-xr-x | build/build_nexus_blob.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/build_nexus_blob.sh b/build/build_nexus_blob.sh index 68d9337a..51ab05e7 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}" echo -n "${NEXUS_PASSWORD}" | docker login -u "${NEXUS_USERNAME}" --password-stdin ${REGISTRY} > /dev/null fi |