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