From 45ee7e199e0ff64a37378c5ab8975fc6add91407 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 6 Apr 2025 07:02:46 +0200 Subject: [PATCH] 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] ``` --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 5548fdb6..e75b7f4d 100755 --- a/neofetch +++ b/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 }