summaryrefslogtreecommitdiff
path: root/tools/validate-maintainer.sh
blob: d6bb75a84f6cbd81ed5878a3e5df50469c06a87c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

MAINTANER='MAINTAINER Kolla Project (https://launchpad.net/kolla)'
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