You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2021/12/14 22:00:37 UTC

[incubator-teaclave] branch master updated: Fix DCAP env var check in the prep script (#590)

This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git


The following commit(s) were added to refs/heads/master by this push:
     new 25711a3  Fix DCAP env var check in the prep script (#590)
25711a3 is described below

commit 25711a3806f1d1a7f1fc689f2399de3428a1975d
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Tue Dec 14 14:00:32 2021 -0800

    Fix DCAP env var check in the prep script (#590)
---
 cmake/scripts/prep.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/scripts/prep.sh b/cmake/scripts/prep.sh
index 3a3b11b..dc87812 100755
--- a/cmake/scripts/prep.sh
+++ b/cmake/scripts/prep.sh
@@ -38,7 +38,7 @@ mkdir -p ${TEACLAVE_OUT_DIR} ${TEACLAVE_TARGET_DIR} ${TEACLAVE_SERVICE_INSTALL_D
       ${TEACLAVE_EXAMPLE_INSTALL_DIR} ${TEACLAVE_CLI_INSTALL_DIR} ${TEACLAVE_TOOL_INSTALL_DIR} \
       ${TEACLAVE_BIN_INSTALL_DIR} ${TEACLAVE_LIB_INSTALL_DIR} \
     ${TEACLAVE_TEST_INSTALL_DIR} ${TEACLAVE_AUDITORS_DIR} ${TEACLAVE_EXAMPLE_AUDITORS_DIR}
-if [ -n "$DCAP" ]; then
+if [ "$DCAP" == "ON" ]; then
     mkdir -p ${TEACLAVE_DCAP_INSTALL_DIR}
     cp ${CMAKE_SOURCE_DIR}/dcap/Rocket.toml ${TEACLAVE_DCAP_INSTALL_DIR}/Rocket.toml
     cp ${CMAKE_SOURCE_DIR}/keys/dcap_server_cert.pem ${TEACLAVE_DCAP_INSTALL_DIR}/

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org