diff options
author | superpoussin22 <vincent.nadal@orange.fr> | 2018-08-07 15:46:47 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2018-08-07 15:46:47 +0300 |
commit | 839977c3f655210940e442490a74c975f10acda3 (patch) | |
tree | cb5acd37afd6d03f50376dd3bfd3c6ec53a0879d | |
parent | e2545dc1e91ec434e71680343c3ba403806170b5 (diff) |
Update helper_audit_dockerfile (#568)
To support LABEL maintainer="toto" and LABEL maintainer "toto"
correct syntax from docker is LABEL maintainer="xxxxxxxxxxxxxxx"
-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 |