From f1cc911e02aff2281c539591bc15baab9956a618 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 29 Apr 2016 10:08:56 +1000 Subject: [PATCH] Fix comma issues --- neofetch | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/neofetch b/neofetch index eb7f4b63..6f0f538f 100755 --- a/neofetch +++ b/neofetch @@ -590,20 +590,20 @@ getuptime () { hours=$((uptime / 3600%24)) days=$((uptime / 86400)) - days=" $days days," - hours=" $hours hours," - mins=" $mins minutes" + days=" $days days" + hours=", $hours hours" + mins=", $mins minutes" - days=${days/ 0 days,} - days=${days/ 1 days/ 1 day} + days=${days/ 0 days} + days=${days/, 1 days/, 1 day} - hours=${hours/ 0 hours,} - hours=${hours/ 1 hours/ 1 hour} + hours=${hours/, 0 hours} + hours=${hours/, 1 hours/, 1 hour} - mins=${mins/ 0 minutes} - mins=${mins/ 1 minutes/ 1 minute} + mins=${mins/, 0 minutes} + mins=${mins/, 1 minutes/, 1 minute} - uptime="up${days}${hours}${mins}" + uptime="up ${days}${hours}${mins}" ;; esac