diff options
author | Zachary Lee Andrews <zcrayfish@gmail.com> | 2021-07-24 05:38:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-24 05:38:31 +0300 |
commit | 886adae4efaeda3bf5d04a47fa28da3c6e0a926e (patch) | |
tree | 0324236b69d461f241e25f9e36285c70a663d096 /include/tests_crypto | |
parent | c89fc248dc9f49d3931c4b05ac0cdf093d87ec40 (diff) |
Use posix egrep options, fixing issue #1166
Diffstat (limited to 'include/tests_crypto')
-rw-r--r-- | include/tests_crypto | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_crypto b/include/tests_crypto index 227401c3..89ad1e62 100644 --- a/include/tests_crypto +++ b/include/tests_crypto @@ -80,7 +80,7 @@ if [ ${CANREAD} -eq 1 ]; then # Only check the files that are not installed by a package, unless enabled by profile if [ ${SSL_CERTIFICATE_INCLUDE_PACKAGES} -eq 1 ] || ! FileInstalledByPackage "${FILE}"; then - echo ${FILE} | ${EGREPBINARY} --quiet ".cer$|.der$" + echo ${FILE} | ${EGREPBINARY} -q ".cer$|.der$" CER_DER=$? OUTPUT=$(${GREPBINARY} -q 'BEGIN CERT' "${FILE}") if [ $? -eq 0 -o ${CER_DER} -eq 0 ]; then @@ -200,7 +200,7 @@ LogText "Result: Found LUKS encrypted swap device: ${BLOCK_DEV}" ENCRYPTED_SWAPS=$((ENCRYPTED_SWAPS + 1)) Report "encrypted_swap[]=${BLOCK_DEV},LUKS" - elif ${CRYPTSETUPBINARY} status "${BLOCK_DEV}" 2> /dev/null | ${GREPBINARY} --quiet "cipher:"; then + elif ${CRYPTSETUPBINARY} status "${BLOCK_DEV}" 2> /dev/null | ${GREPBINARY} -q "cipher:"; then LogText "Result: Found non-LUKS encrypted swap device: ${BLOCK_DEV}" ENCRYPTED_SWAPS=$((ENCRYPTED_SWAPS + 1)) Report "encrypted_swap[]=${BLOCK_DEV},other" |