From 839977c3f655210940e442490a74c975f10acda3 Mon Sep 17 00:00:00 2001 From: superpoussin22 Date: Tue, 7 Aug 2018 14:46:47 +0200 Subject: Update helper_audit_dockerfile (#568) To support LABEL maintainer="toto" and LABEL maintainer "toto" correct syntax from docker is LABEL maintainer="xxxxxxxxxxxxxxx" --- include/helper_audit_dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/helper_audit_dockerfile') 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 -- cgit v1.2.3