Skip to content

Commit

Permalink
fix che-ip (eclipse-che#3690)
Browse files Browse the repository at this point in the history
on some OS che-ip does not work because output is different.
here I've added reg-ex `.*` which assume that scope can be differ from `global` and some extra words could appear like `dynamic`.
  • Loading branch information
Roman Iuvshin authored Jan 12, 2017
1 parent db942d3 commit 140f07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockerfiles/ip/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if test -z ${NETWORK_IF}; then
fi

ip a show "${NETWORK_IF}" | \
grep "scope global ${NETWORK_IF}" | \
grep -e "scope.*${NETWORK_IF}" | \
grep -v ':' | \
cut -d/ -f1 | \
awk '{print $2}'

0 comments on commit 140f07e

Please sign in to comment.