Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-07-28 11:38:10 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-07-28 11:38:10 +0300
commit052350feb4cd5b74d07b20d9f4a123d4cf55ae77 (patch)
tree5b98b6176e24b06d1c4109a3676d3da27835c665 /include/tests_file_integrity
parent4e3de865ac398c78b4f33572b87012b7a5cdce28 (diff)
[FINT-4402] Use correct variable
Diffstat (limited to 'include/tests_file_integrity')
-rw-r--r--include/tests_file_integrity4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_file_integrity b/include/tests_file_integrity
index fd11d337..0cb65bc5 100644
--- a/include/tests_file_integrity
+++ b/include/tests_file_integrity
@@ -270,8 +270,8 @@
if [ ! "${AIDEBINARY}" = "" -a ! "${AIDECONFIG}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
Register --test-no FINT-4402 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "AIDE configuration: Checksums (SHA256 or SHA512)"
if [ ${SKIPTEST} -eq 0 ]; then
- FIND=`${GREPBINARY} -v "^#" ${AIDECONFIG} | ${EGREPBINARY} "= .*(sha256|sha512)"`
- if [ "${FIND2}" = "" ]; then
+ FIND=$(${GREPBINARY} -v "^#" ${AIDECONFIG} | ${EGREPBINARY} "= .*(sha256|sha512)")
+ if [ "${FIND}" = "" ]; then
LogText "Result: No SHA256 or SHA512 found for creating checksums"
Display --indent 6 --text "- AIDE config (Checksum)" --result Suggestion --color YELLOW
ReportSuggestion ${TEST_NO} "Use SHA256 or SHA512 to create checksums in AIDE"