From 44a56c8b4d9b7199fd3b34e1ec73b8679b4281c0 Mon Sep 17 00:00:00 2001 From: Mahmoud Hanafy Date: Fri, 14 Jul 2023 12:49:56 +0200 Subject: [PATCH] Respect $POETRY_HOME if set --- main.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 3fa328e2..fabca7cb 100755 --- a/main.sh +++ b/main.sh @@ -2,7 +2,11 @@ set -eo pipefail -INSTALL_PATH="$HOME/.local" +if [ -z ${POETRY_HOME+x} ]; then + INSTALL_PATH="$POETRY_HOME" +else + INSTALL_PATH="$HOME/.local" +fi YELLOW="\033[33m" RESET="\033[0m"