# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
#2) User logging into docker.io with docker version <17.06.0 email optional
#3) User logging into docker.io wiht docker version >= 17.06.0 cannot use email flag
#2) User logging into docker.io with docker version <17.06.0 email optional
#3) User logging into docker.io wiht docker version >= 17.06.0 cannot use email flag
-#Check if current version less than desired version
-version_lt() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" != "$1"; }
+# Check if current version less than desired version
+version_lt() {
+ test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" != "$1";
+}
REGISTRY="${DOCKER_REGISTRY}:${PORT}"
# docker login requests an email address if nothing is passed to it
# Nexus, however, does not need this and ignores the value
REGISTRY="${DOCKER_REGISTRY}:${PORT}"
# docker login requests an email address if nothing is passed to it
# Nexus, however, does not need this and ignores the value
-if [ "${DOCKERHUB_REGISTRY:-none}" != 'none' ]
-then
- set_creds $DOCKERHUB_REGISTRY
- if [ "${DOCKERHUB_EMAIL:-none}" != 'none' ]
- then
+if [ "${DOCKERHUB_REGISTRY:-none}" != 'none' ]; then
+ set_creds "$DOCKERHUB_REGISTRY"
+ if [ "${DOCKERHUB_EMAIL:-none}" != 'none' ]; then