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

MAINTAINER='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