From c8a7cd02e1c1e89eca84f4d08c61891435bb1eda Mon Sep 17 00:00:00 2001 From: Anaswara T Rajan Date: Wed, 26 Feb 2025 20:28:33 +0530 Subject: [PATCH] check for poetry installation and exit if no installation found --- setup-project.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup-project.sh b/setup-project.sh index 0c904121..b797ec0e 100644 --- a/setup-project.sh +++ b/setup-project.sh @@ -2,6 +2,14 @@ OS=$(uname -s) if [ "$OS" == "Linux" ]; then + # Check poetry installation and exit if no installation found. + if ! command -v poetry 2>&1 >/dev/null + then + echo "Could not detect Poetry installation. Please make sure you install Poetry first. + See https://python-poetry.org/docs/#installation or run pip3 install poetry" + exit 1 + fi + # setup environment cd cli poetry install