Merge lp:~kevin.mark/byobu/fix-uptime-osx into lp:byobu
Proposed by
Kevin Mark
Status: | Merged |
---|---|
Merged at revision: | 2497 |
Proposed branch: | lp:~kevin.mark/byobu/fix-uptime-osx |
Merge into: | lp:byobu |
Diff against target: |
33 lines (+11/-4) 1 file modified
usr/lib/byobu/uptime (+11/-4) |
To merge this branch: | bzr merge lp:~kevin.mark/byobu/fix-uptime-osx |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dustin Kirkland | Pending | ||
Review via email: mp+295993@code.launchpad.net |
Commit message
Fixes the uptime status notification on OS X.
Description of the change
This fixes the uptime status notification on OS X. Previously it would fall back to parsing `uptime` and that would give bad output.
There are a few different ways I could've detected the OS (like what's done in logo) but I think checking for /usr/sbin/sysctl is probably sufficient enough here. I suppose I also could've "fixed" the sed line but I assume it's working somewhere else and I'd have to branch for that anyway.
To post a comment you must log in.