Merge "Select addons namespace with kubectl in e2e tests"
authorKuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Wed, 1 Sep 2021 18:49:44 +0000 (18:49 +0000)
committerGerrit Code Review <gerrit@akraino.org>
Wed, 1 Sep 2021 18:49:44 +0000 (18:49 +0000)
env/metal3/02_configure.sh

index 085a162..d2842d2 100755 (executable)
@@ -15,7 +15,8 @@ function check_interface_ip {
     local interface=$1
     local ipaddr=$2
 
-    if [ ! $(ip addr show dev $interface) ]; then
+    ip addr show dev $interface
+    if [ $? -ne 0 ]; then
         exit 1
     fi