Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Commit 5ed9041

Browse files
max-ltfitzyjoe
authored andcommitted
Reverted OS selection block in tests
1 parent 15a878a commit 5ed9041

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ NONE='\033[00m'
77
DOCKER_IMAGE_NAME=jwt-nginx
88
CONTAINER_ID=$(docker run --rm --name "${DOCKER_IMAGE_NAME}-cont" -d -p 8000:8000 ${DOCKER_IMAGE_NAME})
99

10-
if [[ "$OSTYPE" == "darwin"* ]] || [[ "$OSTYPE" == "linux"* ]]; then
11-
# Mac OSX / Linux
12-
MACHINE_IP='localhost'
13-
else
14-
# Windows
15-
MACHINE_IP=`docker-machine ip 2> /dev/null`
10+
if ! MACHINE_IP=`docker-machine ip 2>/dev/null`; then
11+
MACHINE_IP='0.0.0.0' # fix for MacOS
1612
fi
1713

1814
docker cp ${CONTAINER_ID}:/usr/lib64/nginx/modules/ngx_http_auth_jwt_module.so .

0 commit comments

Comments
 (0)