diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-28 11:38:10 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-28 11:38:10 +0300 |
commit | 052350feb4cd5b74d07b20d9f4a123d4cf55ae77 (patch) | |
tree | 5b98b6176e24b06d1c4109a3676d3da27835c665 /include/tests_file_integrity | |
parent | 4e3de865ac398c78b4f33572b87012b7a5cdce28 (diff) |
[FINT-4402] Use correct variable
Diffstat (limited to 'include/tests_file_integrity')
-rw-r--r-- | include/tests_file_integrity | 4 |
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" |