diff options
| -rwxr-xr-x | scripts/build_python.sh | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/scripts/build_python.sh b/scripts/build_python.sh index ea3f6d8..d026eb8 100755 --- a/scripts/build_python.sh +++ b/scripts/build_python.sh @@ -5,8 +5,8 @@ shopt -s inherit_errexit  py_version="${1}"  # Install Python interpreter under e.g. /snekbin/python/3.13/ (no patch version) -# By dropping everything after, and including, the last period. -install_path="${1%[-.]*}" +# By dropping everything after, and including, the last period or hyphen. +install_path="${py_version%[-.]*}"  # If python version ends with a t, then ensure Python is installed to a dir ending with a t.  if [[ $py_version == *t ]]; then | 
