diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-06-06 15:20:12 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-06-06 15:20:12 +0300 |
commit | 61d8c91eebee5471e6fd16c8d1cdf01542ccb3cb (patch) | |
tree | b005c5ed649a8de5cabb9662e04e256701420eb1 /include/tests_filesystems | |
parent | 59b102989f95c245da9814dd417f570a061344dc (diff) |
[FILE-6310] filter on correct field for AIX
Diffstat (limited to 'include/tests_filesystems')
-rw-r--r-- | include/tests_filesystems | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems index 7dc61933..4e52ea5e 100644 --- a/include/tests_filesystems +++ b/include/tests_filesystems @@ -48,7 +48,11 @@ Display --indent 4 --text "- Checking ${I} mount point" --result SYMLINK --color WHITE elif [ -d ${I} ]; then LogText "Result: directory ${I} exists" - FIND=$(${MOUNTBINARY} | ${AWKBINARY} -v MP=${I} '{ if ($3==MP) { print $3 }}') + case "${OS}" in + "AIX") FIND=$(${MOUNTBINARY} | ${AWKBINARY} -v MP=${I} '{ if ($2==MP) { print $2 }}') ;; + *) FIND=$(${MOUNTBINARY} | ${AWKBINARY} -v MP=${I} '{ if ($3==MP) { print $3 }}') ;; + esac + if IsEmpty "${FIND}"; then LogText "Result: ${I} not found in mount list. Directory most likely stored on / file system" Display --indent 4 --text "- Checking ${I} mount point" --result "${STATUS_SUGGESTION}" --color YELLOW |