From e0579c9ce6e3d4dd42e02ffe90e67980651679ef Mon Sep 17 00:00:00 2001 From: Daniel Perez Date: Wed, 1 Nov 2017 01:07:55 +0900 Subject: [PATCH] Use default shim for python --- shims/python | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 shims/python diff --git a/shims/python b/shims/python deleted file mode 100755 index 6c7bfa3..0000000 --- a/shims/python +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -source $(dirname $(dirname $0))/lib/utils.sh - -run_python() { - local plugin_name="python" - - local full_version=$(get_preset_version_for $plugin_name) - - if [ "$full_version" == "" ]; then - echo "No version set for ${plugin_name}" - exit -1 - fi - - 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} "$@" -} - -run_python "$@"