summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
d97c707)
Fix a conditional statement that returns an error although the
command ran successfully. Fortunately, this did not affect the
functionality and logic in the script but it generated extra
noise on the console logs that are unnecessary and potentially
confusing to users.
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
Change-Id: Ic59c09e2b2890af37bbb023d0b372baa2f718c2d
local interface=$1
local ipaddr=$2
local interface=$1
local ipaddr=$2
- if [ ! $(ip addr show dev $interface) ]; then
+ ip addr show dev $interface
+ if [ $? -ne 0 ]; then