Skip to content

Commit

Permalink
fix: Truncate python3 version to simplify symlink logic (#19)
Browse files Browse the repository at this point in the history
* Instead of attempting to capture the minor version number just symlink to python3. This allows
for "${which_python::-1}" to easily resolve to 'python'.
* Amends PR #18
  • Loading branch information
matthewfeickert authored Jul 14, 2022
1 parent e7a6607 commit dae21c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function symlink_python_to_python3 {
local python_version
python_version="$(python3 --version)"
local which_python
which_python="$(command -v python3)${python_version:8:2}"
which_python="$(command -v python3)${python_version:8:}"
local which_pip
which_pip="$(command -v pip3)"

Expand Down

0 comments on commit dae21c8

Please sign in to comment.