mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* usr/lib/byobu/uptime:
- handle multiple white space with a single digit hour on Mac OS X
This commit is contained in:
parent
2bc356990f
commit
09241207b6
2 changed files with 3 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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 --
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue