diff options
author | 2024-10-12 10:05:15 +0100 | |
---|---|---|
committer | 2024-10-12 10:05:15 +0100 | |
commit | 73e12c84ecb8e3ece9a266f40cee96264efee324 (patch) | |
tree | 0f3e2d289fd60d6013e77c66766e5688ab492e8b | |
parent | Don't install packages that aren't compatible with 3.13t (diff) |
Use the py_verison variable rather than reusing argv again
-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 |