Skip to content

Commit cecd41b

Browse files
committed
fixup conditional
1 parent 5978e62 commit cecd41b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ test: test-registry test-images
1414
# Starts a local Docker registry on port 5000 with a local disk cache.
1515
.PHONY: test-registry
1616
test-registry: .registry-cache
17-
if [ ! curl -fsSL http://localhost:5000/v2/_catalog >/dev/null 2>&1 ]; then \
18-
docker rm -f envbuilder-registry; \
17+
if ! curl -fsSL http://localhost:5000/v2/_catalog > /dev/null 2>&1; then \
18+
docker rm -f envbuilder-registry && \
1919
docker run -d -p 5000:5000 --name envbuilder-registry --volume $(PWD)/.registry-cache:/var/lib/registry registry:2; \
2020
fi
2121

0 commit comments

Comments
 (0)