From b3e99f8ca4686aaf1ca7efcb84eb84a162700887 Mon Sep 17 00:00:00 2001 From: le0m Date: Tue, 19 Oct 2021 17:59:26 +0200 Subject: [PATCH] fix: PHP version test for 'latest' --- Makefile | 2 +- dev/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3a330dd..816b095 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,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 diff --git a/dev/Makefile b/dev/Makefile index bd46d1f..9c880ae 100644 --- a/dev/Makefile +++ b/dev/Makefile @@ -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