diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2020-06-22 15:26:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 15:26:47 +0300 |
commit | b980223d42451f6fd8f9967cd2e18393fae3546e (patch) | |
tree | a91b6afe4546bb4477e5737a31361159cc3ee2ab | |
parent | d1cb4d71cd5a84bfb6927212f71437c7ff83edd8 (diff) | |
parent | c02ce49ce336abb146afc18d262bc7aab5365dc3 (diff) |
Merge pull request #958 from Steve8291/patch-2
fix stderr output from cryptsetup status
-rw-r--r-- | include/tests_crypto | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_crypto b/include/tests_crypto index 02fa0a80..ddf1406a 100644 --- a/include/tests_crypto +++ b/include/tests_crypto @@ -186,7 +186,7 @@ if ${CRYPTSETUPBINARY} isLuks "${BLOCK_DEV}" 2> /dev/null; then LogText "Result: Found LUKS encrypted swap device: ${BLOCK_DEV}" ENCRYPTED_SWAPS=$((ENCRYPTED_SWAPS +1)) - elif ${CRYPTSETUPBINARY} status "${BLOCK_DEV}" | ${GREPBINARY} --quiet "cipher:"; then + elif ${CRYPTSETUPBINARY} status "${BLOCK_DEV}" 2> /dev/null | ${GREPBINARY} --quiet "cipher:"; then LogText "Result: Found non-LUKS encrypted swap device: ${BLOCK_DEV}" ENCRYPTED_SWAPS=$((ENCRYPTED_SWAPS +1)) else |