From 218c159c0cd003ba1f75ca9515be0e77507b0b34 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 26 Mar 2016 10:07:04 +1100 Subject: [PATCH] Don't print 'up' until the end --- neofetch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index 0ef82ae9..85c91730 100755 --- a/neofetch +++ b/neofetch @@ -587,24 +587,24 @@ getuptime () { # Format the output like Linux's "uptime -p" cmd. if [ "$mins" == 1 ]; then - mins="$mins minute" + uptime="$mins minute" elif [ "$mins" != 0 ]; then - mins="$mins minutes" + uptime="$mins minutes" fi if [ "$hours" == 1 ]; then - hours="$hours hour," + uptime="$hours hour, $uptime" elif [ "$mins" != 0 ]; then - hours="$hours hours," + uptime="$hours hours, $uptime" fi if [ "$days" == 1 ]; then - days="$days day," + uptime="$days day, $uptime" elif [ "$days" != 0 ]; then - days="$days days," + uptime="$days days, $uptime" fi - uptime="up $days $hours $mins" + uptime="up $uptime" ;; "Windows")