Skip to content

Commit bb6e9a9

Browse files
authored
Merge pull request #219 from ryran/handle-missing-brctl
Send brctl show errors to devnull
2 parents c67faeb + 28e5836 commit bb6e9a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xsos

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# xsos v0.7.12 last mod 2017/10/11
2+
# xsos v0.7.13 last mod 2017/10/11
33
# Latest version at <http://github.com/ryran/xsos>
44
# RPM packages available at <http://people.redhat.com/rsawhill/rpms>
55
# Copyright 2012-2016 Ryan Sawhill Aroha <[email protected]>
@@ -2218,7 +2218,7 @@ IPADDR() {
22182218
# If localhost, use ip addr
22192219
if [[ -z $1 ]]; then
22202220
ip_a_input=$(ip a)
2221-
brctl_show_input=$(brctl show)
2221+
brctl_show_input=$(brctl show 2>/dev/null)
22222222
# If passed a file (i.e. xsos --I <file>), use that
22232223
elif [[ -f $1 ]]; then
22242224
ip_a_input=$(<"${1}")

0 commit comments

Comments
 (0)