test/network.bats: s/which/command -v/
This fixes the following shellcheck warning:
In test/network.bats line 118:
cp "$(which conmon)" "$CONMON_BINARY"
^---^ SC2230: which is non-standard. Use builtin 'command -v' instead.
@@ -115,7 +115,7 @@ function check_networking() {
@test "Clean up network if pod sandbox fails" {
# TODO FIXME find a way for sandbox setup to fail if manage ns is true
CONMON_BINARY="$TESTDIR"/conmon
- cp "$(which conmon)" "$CONMON_BINARY"
+ cp "$(command -v conmon)" "$CONMON_BINARY"
CNI_DEFAULT_NETWORK="crio-${TESTDIR: -10}"
CONTAINER_MANAGE_NS_LIFECYCLE=false \
CONTAINER_DROP_INFRA_CTR=false \
