usr/lib/byobu/disk: minor simplification

This commit is contained in:
Dustin Kirkland 2010-04-26 18:28:24 -05:00
commit 3aea4d2224
2 changed files with 2 additions and 2 deletions

1
debian/changelog vendored
View file

@ -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

View file

@ -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