From 9871e651483afef6731e280566686dbe0f27974e Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 29 Apr 2016 10:00:48 +1000 Subject: [PATCH] Easy way to find start of string --- neofetch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 3f26f025..bcee1b73 100755 --- a/neofetch +++ b/neofetch @@ -590,11 +590,11 @@ 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" - uptime="up ${days/0 days,} ${hours/0 hours,} ${mins/0 minutes}" + uptime="up${days/ 0 days,}${hours/ 0 hours,}${mins/ 0 minutes}" ;; esac