From ea1d2d2341b9c12aa8a0107219b7477a1572472f Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 27 Mar 2016 14:56:43 +1100 Subject: [PATCH] Also remove trailing tab characters --- neofetch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index b041fce1..5b26f118 100755 --- a/neofetch +++ b/neofetch @@ -510,7 +510,7 @@ case "$os" in x32="32-bit" ;; esac -distro=${distro//+( )/ } +distro=${distro//+([[:space:]])/ } ascii_distro="$distro" getdistro () { @@ -627,7 +627,7 @@ getuptime () { uptime=${uptime# } ;; esac - uptime=${uptime//+( )/ } + uptime=${uptime//+([[:space:]])/ } } # }}} @@ -920,7 +920,7 @@ getcpu () { esac # Trim whitespace - cpu=${cpu//+( )/ } + cpu=${cpu//+([[:space:]])/ } # Add CPU info bar prin "${subtitle}: ${cpu}" @@ -1070,7 +1070,7 @@ getgpu () { ;; esac - gpu=${gpu//+( )/ } + gpu=${gpu//+([[:space:]])/ } gpu="${gpu}${count}" } @@ -1719,7 +1719,7 @@ getbirthday () { # Pretty output [ "$birthday_shorthand" == "off" ] && \ - birthday=${date_cmd//+( )/ } + birthday=${date_cmd//+([[:space:]])/ } # Toggle showing the time [ "$birthday_time" == "off" ] && \