summaryrefslogtreecommitdiff
path: root/TestScripts
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2022-05-10 09:11:03 -0400
committerJeffrey Walton <noloader@gmail.com>2022-05-10 09:11:03 -0400
commit0c40b20303bf716facbeb50d503a70f993c6d2ca (patch)
treea434a70d4885e8702c22bed496debc4818624008 /TestScripts
parenta13366b26a0a35f8cffb61d8601bba2432dba4a0 (diff)
downloadcryptopp-git-0c40b20303bf716facbeb50d503a70f993c6d2ca.tar.gz
Update cryptest.sh script
Diffstat (limited to 'TestScripts')
-rwxr-xr-xTestScripts/cryptest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/TestScripts/cryptest.sh b/TestScripts/cryptest.sh
index a445574a..5d947bbd 100755
--- a/TestScripts/cryptest.sh
+++ b/TestScripts/cryptest.sh
@@ -310,7 +310,7 @@ fi
# Now that the compiler is fixed, determine the compiler version for fixups
CXX_VERSION=$("${CXX}" -v 2>&1)
CXX_GCC_VERSION=$("${CXX}" --version 2>&1 | head -n 1 | ${GREP} -i -E '^(gcc|g++)' | ${AWK} '{print $(NF)}')
-GCC_4_8=$(echo "${CXX_GCC_VERSION}" | "${GREP}" -i -c -E '^4\.8' <<< "${CXX_GCC_VERSION}")
+GCC_4_8=$(echo "${CXX_GCC_VERSION}" | "${GREP}" -i -c -E '^4\.8')
GCC_4_8_OR_ABOVE=$(echo "${CXX_GCC_VERSION}" | "${GREP}" -i -c -E '^(4\.[8-9]|[5-9]\.|[1-9][0-9]\.)')
GCC_10_0_OR_ABOVE=$(echo "${CXX_GCC_VERSION}" | "${GREP}" -i -c -E '^(1[0-9]\.|[2-9][0-9]\.)')
GCC_11_0_OR_ABOVE=$(echo "${CXX_GCC_VERSION}" | "${GREP}" -i -c -E '^(1[1-9]\.|[2-9][0-9]\.)')