Skip to content

Commit

Permalink
Merge pull request #12 from asdf-community/legacy-installer-args
Browse files Browse the repository at this point in the history
legacy arg to not modify PATH
  • Loading branch information
crflynn authored Aug 13, 2021
2 parents 53241ce + 0bb345e commit cb91d81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ install_poetry() {

semver_ge "$ASDF_INSTALL_VERSION" 1.2.0 && vercomp="ge" || vercomp="lt"

install_url="https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py"

if [ $vercomp == "ge" ]; then
install_url="https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py"
curl -sSL "$install_url" | POETRY_HOME=$install_path python3 - --version "$version"
else
install_url="https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py"
curl -sSL "$install_url" | POETRY_HOME=$install_path python3 - --version "$version" --no-modify-path
fi

curl -sSL "$install_url" | POETRY_HOME=$install_path python3 - --version "$version"
}

install_poetry "$ASDF_INSTALL_TYPE" "$ASDF_INSTALL_VERSION" "$ASDF_INSTALL_PATH"

0 comments on commit cb91d81

Please # to comment.