diff options
-rw-r--r-- | include/helper_audit_dockerfile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/helper_audit_dockerfile b/include/helper_audit_dockerfile index c6cec4a8..bf55dee9 100644 --- a/include/helper_audit_dockerfile +++ b/include/helper_audit_dockerfile @@ -94,11 +94,13 @@ fi InsertSection "Basics" - FIND=$(egrep "^MAINTAINER" ${AUDIT_FILE} | sed 's/ /:space:/g') + #FIND=$(egrep "^MAINTAINER" ${AUDIT_FILE} | sed 's/ /:space:/g') + FIND=$(egrep -i "*MAINTAINER" ${AUDIT_FILE} | sed 's/=/ /g' | cut -d'"' -f 2) if [ "${FIND}" = "" ]; then ReportWarning "dockerfile" "No maintainer found. Unclear who created this file." else - MAINTAINER=$(echo ${FIND} | sed 's/:space:/ /g' | awk '{ if($1=="MAINTAINER") { print }}') + #MAINTAINER=$(echo ${FIND} | sed 's/:space:/ /g' | awk '{ if($1=="MAINTAINER") { print }}') + MAINTAINER=$(echo ${FIND}) Display --indent 2 --text "Maintainer" --result "${MAINTAINER}" fi |