Support system version
This commit is contained in:
parent
42f469a74d
commit
400dd7cf70
1 changed files with 5 additions and 3 deletions
|
@ -12,9 +12,11 @@ run_python() {
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IFS='.' read -r -a splitted_version <<< "$full_version"
|
local short_python_version=""
|
||||||
|
if [ "$full_version" != "system" ]; then
|
||||||
local short_python_version="${splitted_version[0]}.${splitted_version[1]}"
|
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} "$@"
|
exec $(asdf_dir)/bin/private/asdf-exec python bin/python${short_python_version} "$@"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue