Don't print 'up' until the end
This commit is contained in:
parent
1c8b71fb90
commit
218c159c0c
14
neofetch
14
neofetch
|
@ -587,24 +587,24 @@ getuptime () {
|
||||||
|
|
||||||
# Format the output like Linux's "uptime -p" cmd.
|
# Format the output like Linux's "uptime -p" cmd.
|
||||||
if [ "$mins" == 1 ]; then
|
if [ "$mins" == 1 ]; then
|
||||||
mins="$mins minute"
|
uptime="$mins minute"
|
||||||
elif [ "$mins" != 0 ]; then
|
elif [ "$mins" != 0 ]; then
|
||||||
mins="$mins minutes"
|
uptime="$mins minutes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$hours" == 1 ]; then
|
if [ "$hours" == 1 ]; then
|
||||||
hours="$hours hour,"
|
uptime="$hours hour, $uptime"
|
||||||
elif [ "$mins" != 0 ]; then
|
elif [ "$mins" != 0 ]; then
|
||||||
hours="$hours hours,"
|
uptime="$hours hours, $uptime"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$days" == 1 ]; then
|
if [ "$days" == 1 ]; then
|
||||||
days="$days day,"
|
uptime="$days day, $uptime"
|
||||||
elif [ "$days" != 0 ]; then
|
elif [ "$days" != 0 ]; then
|
||||||
days="$days days,"
|
uptime="$days days, $uptime"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
uptime="up $days $hours $mins"
|
uptime="up $uptime"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
|
|
Reference in New Issue