diff --git a/show_env.sh b/show_env.sh index 83c47635c..84e37b3d7 100644 --- a/show_env.sh +++ b/show_env.sh @@ -41,12 +41,7 @@ else fi # get python version -python_version='' -if command -v python &> /dev/null; then - python_version=$(python --version | cut -d ' ' -f2) -else - python_version="Python not installed" -fi +python_version=$(python3 --version 2>&1 || python --version 2>&1 || echo "Python not installed") # Print all information echo "Current Repository: $git_repo_name"