From 61d8c91eebee5471e6fd16c8d1cdf01542ccb3cb Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 6 Jun 2019 14:20:12 +0200 Subject: [PATCH] [FILE-6310] filter on correct field for AIX --- include/tests_filesystems | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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