Fix shorthand uptime

This commit is contained in:
Dylan 2016-04-29 10:39:07 +10:00
parent 7eaf3f3b4d
commit 1c9f19fd21

View file

@ -623,7 +623,7 @@ getuptime () {
# Make the output of uptime smaller.
case "$uptime_shorthand" in
"on")
uptime=${uptime/up}
uptime=${uptime/up }
uptime=${uptime/minutes/mins}
uptime=${uptime/minute/min}
uptime=${uptime/seconds/secs}
@ -631,7 +631,7 @@ getuptime () {
;;
"tiny")
uptime=${uptime/up}
uptime=${uptime/up }
uptime=${uptime/ days/d}
uptime=${uptime/ day/d}
uptime=${uptime/ hours/h}