]> git.proxmox.com Git - mirror_ovs.git/commit
utilities: don't use a bashism to check that datapath exists
authorTimothy Redaelli <tredaelli@redhat.com>
Wed, 1 Aug 2018 15:48:21 +0000 (17:48 +0200)
committerBen Pfaff <blp@ovn.org>
Sat, 4 Aug 2018 00:06:56 +0000 (17:06 -0700)
commit49c5ee21ead68be4fc4593206dd022ad9249b286
treefbcb7f37baa331b5beb7b2025309c28756570b71
parent2f7662a10e3990e679c939506d4258339b348c66
utilities: don't use a bashism to check that datapath exists

[[ ]] syntax is not supported, at least, by dash that Debian, Ubuntu and other
linux distributions may use instead of bash.

This commit uses, instead, a POSIX way that is compatible with any POSIX
shell (bash, dash, busybox sh, etc).

CC: Martin Xu <martinxu9.ovs@gmail.com>
Fixes: 9763d17fbd05 ("utilities: check datapath exists before conntrack flush")
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Aaron Conole <aconole@redhat.com>
utilities/ovs-lib.in