mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
Fix python_version in show_env.sh when its meets python3. (#9894)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user