mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Merge pull request #958 from Steve8291/patch-2
fix stderr output from cryptsetup status
This commit is contained in:
commit
b980223d42
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue