From acdfbe2063d0a4f64c558b4dcd996b2f1fc95be4 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 28 Oct 2019 13:14:06 +0200 Subject: [PATCH] uptime: fix bug --- neofetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 2a93a1e2..a304cfad 100755 --- a/neofetch +++ b/neofetch @@ -1285,9 +1285,9 @@ get_uptime() { ((${m/ *} == 1)) && m=${m/s} # Hide empty fields. - ((${d/ *} == 0)) && unset days - ((${h/ *} == 0)) && unset hours - ((${m/ *} == 0)) && unset mins + ((${d/ *} == 0)) && unset d + ((${h/ *} == 0)) && unset h + ((${m/ *} == 0)) && unset m uptime=${d:+$d, }${h:+$h, }$m uptime=${uptime%', '}