From c98c0a35c708fb168fee4242b5e1bd5f53a8a499 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 8 May 2022 22:32:18 -0400 Subject: [PATCH] Update cryptest.sh script if no /proc filesystem --- TestScripts/cryptest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestScripts/cryptest.sh b/TestScripts/cryptest.sh index e762ff05..98cfb818 100755 --- a/TestScripts/cryptest.sh +++ b/TestScripts/cryptest.sh @@ -187,7 +187,7 @@ if [[ ("$IS_X86" -ne 0 || "$IS_X64" -ne 0) ]]; then elif [[ ("$IS_HURD" -ne 0) ]]; then : # Do nothing... cpuid is not helpful at the moment else - X86_CPU_FLAGS="$(${AWK} '{IGNORECASE=1}{if ($1 == "flags"){print;exit}}' < /proc/cpuinfo | cut -f 2 -d ':')" + X86_CPU_FLAGS="$(${AWK} '{IGNORECASE=1}{if ($1 == "flags"){print;exit}}' < /proc/cpuinfo 2>/dev/null | cut -f 2 -d ':')" fi elif [[ ("$IS_ARM32" -ne 0 || "$IS_ARM64" -ne 0) ]]; then if [[ ("$IS_DARWIN" -ne 0) ]]; then