π OpenHands: AI-Driven Development
Makefile: Fix poetry version detector (#6058)
Boxuan Li00d7395e09d3
diff --git a/Makefile b/Makefileindex 9cae92e045..0317224d68 100644--- a/Makefile+++ b/Makefile@@ -106,7 +106,7 @@ check-poetry:@if command -v poetry > /dev/null; then \POETRY_VERSION=$(shell poetry --version 2>&1 | sed -E 's/Poetry \(version ([0-9]+\.[0-9]+\.[0-9]+)\)/\1/'); \IFS='.' read -r -a POETRY_VERSION_ARRAY <<< "$$POETRY_VERSION"; \- if [ $${POETRY_VERSION_ARRAY[0]} -ge 1 ] && [ $${POETRY_VERSION_ARRAY[1]} -ge 8 ]; then \+ if [ $${POETRY_VERSION_ARRAY[0]} -gt 1 ] || ([ $${POETRY_VERSION_ARRAY[0]} -eq 1 ] && [ $${POETRY_VERSION_ARRAY[1]} -ge 8 ]); then \echo "$(BLUE)$(shell poetry --version) is already installed.$(RESET)"; \else \echo "$(RED)Poetry 1.8 or later is required. You can install poetry by running the following command, then adding Poetry to your PATH:"; \