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 a8e94f6 fix(docker): fix detect device file with symlink (#626)
a8e94f6 is described below
commit a8e94f61cedcd715fedb68b7106611d2944560c8
Author: Mingshen Sun <[email protected]>
AuthorDate: Wed Feb 16 18:24:33 2022 -0800
fix(docker): fix detect device file with symlink (#626)
---
docker/run-teaclave-services.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docker/run-teaclave-services.sh b/docker/run-teaclave-services.sh
index 2e17df3..d9b4fce 100755
--- a/docker/run-teaclave-services.sh
+++ b/docker/run-teaclave-services.sh
@@ -30,14 +30,14 @@ function sgx_dev_detect() {
local ENCL_DEV=/dev/sgx/enclave
local ENCL_DEV_EXIST=false
- if [ -L "$ENCL_DEV" ] && [ -c $(readlink $ENCL_DEV) ]; then
+ if [ -L "$ENCL_DEV" ] && [ -c $(realpath $ENCL_DEV) ]; then
echo "$ENCL_DEV device detected."
ENCL_DEV_EXIST=true
fi
local PROV_DEV=/dev/sgx/provision
local PROV_DEV_EXIST=false
- if [ -L "$PROV_DEV" ] && [ -c $(readlink $PROV_DEV) ]; then
+ if [ -L "$PROV_DEV" ] && [ -c $(realpath $PROV_DEV) ]; then
echo "$PROV_DEV device detected."
PROV_DEV_EXIST=true
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]