From 400dd7cf70ab27a2c1f364f1c7cc5a5104b0bdcf Mon Sep 17 00:00:00 2001 From: Daniel Perez Date: Mon, 27 Mar 2017 08:55:57 -0700 Subject: [PATCH] Support system version --- shims/python | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shims/python b/shims/python index 8de8e04..6c7bfa3 100755 --- a/shims/python +++ b/shims/python @@ -12,9 +12,11 @@ run_python() { exit -1 fi - IFS='.' read -r -a splitted_version <<< "$full_version" - - local short_python_version="${splitted_version[0]}.${splitted_version[1]}" + local short_python_version="" + if [ "$full_version" != "system" ]; then + IFS='.' read -r -a splitted_version <<< "$full_version" + short_python_version="${splitted_version[0]}.${splitted_version[1]}" + fi exec $(asdf_dir)/bin/private/asdf-exec python bin/python${short_python_version} "$@" }