From 6cfaf048d04786394a5e116767fdde4f7c758ee9 Mon Sep 17 00:00:00 2001 From: Juliette Pretot Date: Thu, 18 Jun 2020 11:22:27 +0000 Subject: [PATCH] Fix incorrect example client checks --- scripts/run_example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run_example b/scripts/run_example index 4081eb5d3d5..0e4888c0a05 100755 --- a/scripts/run_example +++ b/scripts/run_example @@ -115,7 +115,7 @@ do case "${client_language}" in rust) rust_client_manifest="${SCRIPTS_DIR}/../examples/${EXAMPLE}/client/rust/Cargo.toml" - if [[ -d "${rust_client_manifest}" ]]; then + if [[ -f "${rust_client_manifest}" ]]; then cargo run --release --target=x86_64-unknown-linux-musl --manifest-path="${rust_client_manifest}" -- \ --root-tls-certificate="${SCRIPTS_DIR}/../examples/certs/local/ca.pem" \ "${CLIENT_ARGS[@]-}" @@ -125,7 +125,7 @@ do ;; cpp) cpp_client="./bazel-client-bin/examples/${EXAMPLE}/client/client" - if [[ -d "${cpp_client}" ]]; then + if [[ -f "${cpp_client}" ]]; then "${cpp_client}" "${TLS_ARGS[@]}" "${ADDITIONAL_ARGS[@]-}" "${CLIENT_ARGS[@]-}" else echo "The ${EXAMPLE} example does not contain a ${client_language} client. Skipping this client."