Skip to content

Commit 6853345

Browse files
committed
Redirect the cpuid package install command output to /dev/null, to avoid mix the response output of the getSGXENCLAVEMODE function.
1 parent 5f65358 commit 6853345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function upgrade_docker_image()
7272
function getSGXENCLAVEMODE()
7373
{
7474
if ! dpkg -l | grep cpuid &>/dev/null; then
75-
apt-get install -y cpuid
75+
apt-get install -y cpuid > /dev/null 2>&1
7676
fi
7777
local sgx_type="epid"
7878
for el in $(cpuid | grep -i "SGX launch config" | awk '{print $NF}'); do

0 commit comments

Comments
 (0)