* usr/lib/byobu/uptime:

- handle multiple white space with a single digit hour on Mac OS X
This commit is contained in:
Dustin Kirkland 2013-01-27 22:33:11 -06:00
commit 09241207b6
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -15,6 +15,8 @@ byobu (5.30) unreleased; urgency=low
- point to byobu.co in NEWS file
* usr/bin/byobu-select-profile:
- find a suitable hash sum utility (fixes Mac OS X)
* usr/lib/byobu/uptime:
- handle multiple white space with a single digit hour on Mac OS X
-- Dustin Kirkland <kirkland@ubuntu.com> Sat, 19 Jan 2013 14:18:01 -0600

View file

@ -40,7 +40,7 @@ __uptime() {
str="${u}s"
fi
else
str=$(uptime | sed -e "s/.* up *//" -e "s/ days, /d/" -e "s/:/h/" -e "s/,.*/m/")
str=$(uptime | sed -e "s/.* up *//" -e "s/ *days, */d/" -e "s/:/h/" -e "s/,.*/m/")
fi
[ -n "$str" ] || return
color w b; printf "%s" "${str}"; color --