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:
parent
2cfea54a88
commit
45ee7e199e
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
|
@ -4579,7 +4579,7 @@ get_python_ver() {
|
|||
if command -v python &> /dev/null; then
|
||||
python_ver=$(python -VVV)
|
||||
python_ver=${python_ver//$'\n'/}
|
||||
python_ver=${python_ver//\(+([^\)])\)}
|
||||
python_ver=${python_ver//+([[:space:]])\(+([^\)])\)}
|
||||
python_ver=$(echo "$python_ver" | awk '$1=$1')
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue