diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-09-10 17:12:44 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-09-10 17:12:44 +0300 |
commit | 903016df362e39444d314a81dd4a0ebc61b67da0 (patch) | |
tree | e922e2e0039428dec461bfea52ff8e503720370a /include/tests_file_permissions | |
parent | 2534fb99a9dbc869fd90f0967c6917191b306b69 (diff) |
Code cleanups and generic enhancements
Diffstat (limited to 'include/tests_file_permissions')
-rw-r--r-- | include/tests_file_permissions | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/tests_file_permissions b/include/tests_file_permissions index 79f721b3..2d627bf9 100644 --- a/include/tests_file_permissions +++ b/include/tests_file_permissions @@ -34,7 +34,7 @@ LogText "Test: Checking file permissions" for PROFILE in ${PROFILES}; do LogText "Using profile ${PROFILE} for baseline." - FIND=`${EGREPBINARY} '^permfile:|^permdir:' ${PROFILE} | ${CUTBINARY} -d: -f2` + FIND=$(${EGREPBINARY} '^permfile:|^permdir:' ${PROFILE} | ${CUTBINARY} -d: -f2) for I in ${FIND}; do LogText "Checking ${I}" CheckFilePermissions ${I} @@ -43,14 +43,14 @@ LogText " Result: $PERMS" if [ "${PERMS}" = "FILE_NOT_FOUND" ]; then Display --indent 4 --text "${I}" --result "${STATUS_NOT_FOUND}" --color WHITE - elif [ "${PERMS}" = "OK" ]; then + elif [ "${PERMS}" = "OK" ]; then Display --indent 4 --text "${I}" --result "${STATUS_OK}" --color GREEN - elif [ "${PERMS}" = "BAD" ]; then + elif [ "${PERMS}" = "BAD" ]; then Display --indent 4 --text "${I}" --result "${STATUS_WARNING}" --color RED ReportWarning ${TEST_NO} "Incorrect permissions for file ${I}" - else + else LogText "UNKNOWN status for file" - fi + fi done done fi |