mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-23 22:56:16 -07:00
usr/lib/byobu/disk: minor simplification
This commit is contained in:
parent
0536f042d2
commit
3aea4d2224
2 changed files with 2 additions and 2 deletions
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -10,6 +10,7 @@ byobu (2.72) UNRELEASED; urgency=low
|
|||
* usr/bin/byobu-janitor: add hyphenation to the regex to allow for
|
||||
disk_io
|
||||
* usr/lib/byobu/disk_io: improve MONITORED_DISK overriding
|
||||
* usr/lib/byobu/disk: minor simplification
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 22 Apr 2010 12:31:20 -0500
|
||||
|
||||
|
|
|
@ -26,8 +26,7 @@ if [ "$1" = "--detail" ]; then
|
|||
fi
|
||||
|
||||
# Default to /, but let users override
|
||||
MP="/"
|
||||
[ -n "$MONITORED_DISK" ] && MP="$MONITORED_DISK"
|
||||
[ -z "$MONITORED_DISK" ] && MP="/" || MP="$MONITORED_DISK"
|
||||
case $MP in
|
||||
/dev/*) MP=$(grep "$MP" /proc/mounts | awk '{print $2}') ;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue