Improved test for blank string

This commit is contained in:
Bryan Boreham committed 2014-09-23 13:53:20 +01:00
1 parent a6b83a1234
commit 2d8318b158
1 file changed
+1 -1
+1 -1
View File
@@ -187,7 +187,7 @@ detach() {
EXITCODE=1
if ip netns exec $NSPID ip addr del $2 dev $CONTAINER_IFNAME ; then
# if no inet addresses remain then delete the veth
if [ $(ip netns exec $NSPID ip -f inet addr show dev ethwe | wc -c) -eq 0 ] ; then
if [ -z "$(ip netns exec $NSPID ip -f inet addr list dev ethwe)" ] ; then
if ip link del $LOCAL_IFNAME type veth ; then
EXITCODE=0
else