Skip to content

Commit

Permalink
Redirect the cpuid package install command output to /dev/null, to av…
Browse files Browse the repository at this point in the history
…oid mix the response output of the getSGXENCLAVEMODE function.
  • Loading branch information
wuhaixian1984 committed May 21, 2024
1 parent 5f65358 commit 6853345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function upgrade_docker_image()
function getSGXENCLAVEMODE()
{
if ! dpkg -l | grep cpuid &>/dev/null; then
apt-get install -y cpuid
apt-get install -y cpuid > /dev/null 2>&1
fi
local sgx_type="epid"
for el in $(cpuid | grep -i "SGX launch config" | awk '{print $NF}'); do
Expand Down

0 comments on commit 6853345

Please sign in to comment.