diff --git a/debian/changelog b/debian/changelog index 738575dc..c60090b1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sat, 19 Jan 2013 14:18:01 -0600 diff --git a/usr/lib/byobu/uptime b/usr/lib/byobu/uptime index bc6ea54c..8e00e088 100755 --- a/usr/lib/byobu/uptime +++ b/usr/lib/byobu/uptime @@ -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 --