Skip to content
Snippets Groups Projects
validate-maintainer.sh 239 B
Newer Older
  • Learn to ignore specific revisions
  • #!/bin/bash
    
    MAINTAINER='MAINTAINER {{ maintainer }}'
    
    RES=0
    
    for dockerfile in "$@"; do
        if ! grep -q "$MAINTAINER" "$dockerfile"; then
            echo "ERROR: $dockerfile has incorrect MAINTAINER" >&2
            RES=1
        fi
    done
    
    exit $RES