fix: PHP version test for 'latest'

This commit is contained in:
le0m
2021-10-19 17:59:26 +02:00
parent c01244d604
commit b3e99f8ca4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ test:
exit 1; \
fi
@IMAGE_PHP_VERSION=`docker container run --rm $(IMAGE):$(VERSION) bash -c '/bin/echo $$PHP_VERSION' | cut -d '.' -f 1,2`; \
if [[ "$${IMAGE_PHP_VERSION}" != "$(PHP_VERSION)" ]]; then \
if [[ "$(PHP_VERSION)" != "latest" && "$${IMAGE_PHP_VERSION}" != "$(PHP_VERSION)" ]]; then \
echo "FAIL [wrong PHP version: expected $(PHP_VERSION), got $${IMAGE_PHP_VERSION}]"; \
exit 1; \
fi