Skip to content

Commit

Permalink
Failure to remove legacy poetry version in 5.0.6-0 rpm - continued3 r…
Browse files Browse the repository at this point in the history
…ockstor#2782

- remove not only substring instance of legacy Poetry path,
but also our temp front-of-path entry.
  • Loading branch information
phillxnet committed Jan 23, 2024
1 parent e811c66 commit 3f107a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ if which poetry && poetry --version | grep -q "1.1.15"; then
curl -sSL https://install.python-poetry.org | python3 - --uninstall
rm --force /root/.local/bin/poetry # remove dangling dead link.
fi
# bash substring replace with "" our temp legacy poetry path.
# bash substring replace: null all legacy poetry paths - mid-instance
PATH="${PATH//':/root/.local/bin'/''}"
# bash substring remove (front): our above added temp legacy poetry path.
PATH="${PATH#'/root/.local/bin:'}"
echo "build.sh has PATH=$PATH"
# Install Poetry via PIPX as a global app
# https://peps.python.org/pep-0668/#guide-users-towards-virtual-environments
Expand Down

0 comments on commit 3f107a5

Please sign in to comment.