mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* bin/network-down, bin/network-up: trim leading and trailing whitespace
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
fafa9183a2
commit
72d1d2c706
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
|
|||
unit="kB/s"
|
||||
|
||||
if [ "$1" = "--detail" ]; then
|
||||
ifconfig "$interface"
|
||||
ifconfig "$interface" | sed 's/^\s*//' | sed 's/\s*$//'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ interface=`/sbin/route -n | tail -n 1 | sed "s/^.* //"`
|
|||
unit="kB/s"
|
||||
|
||||
if [ "$1" = "--detail" ]; then
|
||||
ifconfig "$interface"
|
||||
ifconfig "$interface" | sed 's/^\s*//' | sed 's/\s*$//'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue