diff --git a/neofetch b/neofetch index d5d44c92..34f29b4b 100755 --- a/neofetch +++ b/neofetch @@ -538,7 +538,7 @@ getdistro () { distro=${distro/Microsoft } ;; esac - distro=${distro//+( )/ } + distro="${distro%"${distro##*[![:space:]]}"}" # Get architecture [ "$os_arch" == "on" ] && \