From 73e12c84ecb8e3ece9a266f40cee96264efee324 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sat, 12 Oct 2024 10:05:15 +0100 Subject: Use the py_verison variable rather than reusing argv again --- scripts/build_python.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3