Fix unwanted space in Python version (#401)
Before: ``` Python: Python 3.13.2 [Clang 16.0.0 ] ``` After: ``` Python: Python 3.13.2 [Clang 16.0.0] ```
This commit is contained in:
@@ -4579,7 +4579,7 @@ get_python_ver() {
|
|||||||
if command -v python &> /dev/null; then
|
if command -v python &> /dev/null; then
|
||||||
python_ver=$(python -VVV)
|
python_ver=$(python -VVV)
|
||||||
python_ver=${python_ver//$'\n'/}
|
python_ver=${python_ver//$'\n'/}
|
||||||
python_ver=${python_ver//\(+([^\)])\)}
|
python_ver=${python_ver//+([[:space:]])\(+([^\)])\)}
|
||||||
python_ver=$(echo "$python_ver" | awk '$1=$1')
|
python_ver=$(echo "$python_ver" | awk '$1=$1')
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user