From cf15cf80302559a1647d243187240cfca1efaad2 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Fri, 11 Sep 2015 11:16:19 +0200 Subject: [PATCH] Foreman deploy.sh bug corrected when finding the interfaces Change-Id: Ifb1ab47017ab28fab0a39961c2fd7728d2098cda Signed-off-by: jose.lausuch --- foreman/ci/deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/foreman/ci/deploy.sh b/foreman/ci/deploy.sh index 4c0bf10..3a6f8cd 100755 --- a/foreman/ci/deploy.sh +++ b/foreman/ci/deploy.sh @@ -511,7 +511,8 @@ configure_network() { echo "${blue}Detecting network configuration...${reset}" ##detect host 1 or 3 interface configuration #output=`ip link show | grep -E "^[0-9]" | grep -Ev ": lo|tun|virbr|vboxnet" | awk '{print $2}' | sed 's/://'` - output=`/bin/ls -l /sys/class/net | tail -n +2 | grep -v virtual | cut -d " " -f10` + #output=`/bin/ls -l /sys/class/net | tail -n +2 | grep -v virtual | cut -d " " -f10` + output=`/bin/ls -l /sys/class/net | tail -n +2 | grep -v virtual | awk {'print $9'}` fi if [ ! "$output" ]; then -- 2.16.6