diff --git a/neofetch b/neofetch index bcee1b73..eb7f4b63 100755 --- a/neofetch +++ b/neofetch @@ -594,7 +594,16 @@ getuptime () { hours=" $hours hours," mins=" $mins minutes" - uptime="up${days/ 0 days,}${hours/ 0 hours,}${mins/ 0 minutes}" + days=${days/ 0 days,} + days=${days/ 1 days/ 1 day} + + hours=${hours/ 0 hours,} + hours=${hours/ 1 hours/ 1 hour} + + mins=${mins/ 0 minutes} + mins=${mins/ 1 minutes/ 1 minute} + + uptime="up${days}${hours}${mins}" ;; esac