diff options
author | Jeffrey Walton <noloader@gmail.com> | 2022-05-08 22:32:18 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2022-05-08 22:32:18 -0400 |
commit | c98c0a35c708fb168fee4242b5e1bd5f53a8a499 (patch) | |
tree | a6b944fc73a07a8fdc0b54d3d4c8177f79c1671e /TestScripts | |
parent | d8ae6e439bc7f5fabeb81d277c1bef6bf9a82155 (diff) | |
download | cryptopp-git-c98c0a35c708fb168fee4242b5e1bd5f53a8a499.tar.gz |
Update cryptest.sh script if no /proc filesystem
Diffstat (limited to 'TestScripts')
-rwxr-xr-x | TestScripts/cryptest.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |