Skip to content

Commit

Permalink
Respect $POETRY_HOME if set
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoudhossam authored Jul 14, 2023
1 parent c137a18 commit 44a56c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 44a56c8

Please sign in to comment.