Skip to content

Commit 9dd7547

Browse files
committed
invert the docker env var checks
1 parent 9053899 commit 9dd7547

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.evergreen/start-atlas-cloud-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ cleanup() {
8989

9090
trap cleanup EXIT
9191

92-
if [ -z "$DOCKERHUB_PASSWORD" ]; then
92+
if [ -n "$DOCKERHUB_PASSWORD" ]; then
9393
echo "Logging in to docker"
9494
echo "${DOCKERHUB_PASSWORD}" | docker login -u ${DOCKERHUB_USERNAME} --password-stdin
9595
fi

.evergreen/start-atlas-local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cleanup() {
1919

2020
trap cleanup EXIT
2121

22-
if [ -z "$DOCKERHUB_PASSWORD" ]; then
22+
if [ -n "$DOCKERHUB_PASSWORD" ]; then
2323
echo "Logging in to docker"
2424
echo "${DOCKERHUB_PASSWORD}" | docker login -u ${DOCKERHUB_USERNAME} --password-stdin
2525
fi

.evergreen/start-docker-envs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [ "$HAS_DOCKER" = true ]; then
3333
docker version
3434
$DOCKER_COMPOSE version
3535

36-
if [ -z "$DOCKERHUB_PASSWORD" ]; then
36+
if [ -n "$DOCKERHUB_PASSWORD" ]; then
3737
echo "Logging in to docker"
3838
echo "${DOCKERHUB_PASSWORD}" | docker login -u ${DOCKERHUB_USERNAME} --password-stdin
3939
fi

0 commit comments

Comments
 (0)